Skip to content

Commit

Permalink
fixing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrmr33 committed Mar 24, 2024
1 parent be84176 commit aee8c1d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 50 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/common-wf-noop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

name: Common Spot Verification Workflow

on:
pull_request:
branches: [main]

jobs:
call-verification-workflow:
runs-on: ubuntu-latest
steps:
- name: pr_structure_verification
run: 'exit 0'
28 changes: 0 additions & 28 deletions .github/workflows/create-release.yml

This file was deleted.

30 changes: 11 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:

- name: Get previous version
id: previous-version
run: echo "VALUE=$(cat VERSION)" >> $GITHUB_OUTPUT
run: |
VERSION=`curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r '.tag_name'`
echo "got version $VERSION"
echo "VALUE=$VERSION" >> $GITHUB_OUTPUT
- name: Get next release version
id: next-version
Expand All @@ -36,24 +39,13 @@ jobs:
output=$(IFS=. ; echo "${array[*]}")
echo "VALUE=$output" >> $GITHUB_OUTPUT
- name: Bump version
run: |
echo "${{ steps.next-version.outputs.VALUE }}" > VERSION
- name: Generate version bump commit
run: |
git config user.name ${{ github.actor }}
git config user.email '${{ github.actor }}@users.noreply.github.com'
git commit -a -m "version bump ${{ steps.next-version.outputs.VALUE }}"
- name: Create GitHub Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: '[skip ci] Release'
branch: release
delete-branch: true
labels: release_auto_version_bump
tag_name: ${{ steps.next-version.outputs.VALUE }}
release_name: ${{ steps.next-version.outputs.VALUE }}
draft: false
commitish: main # use the latest commit on main branch (including the new version)
prerelease: false
5 changes: 2 additions & 3 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Update Changelog

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
release:
types: [published]

jobs:
update-changelog:
Expand Down

0 comments on commit aee8c1d

Please sign in to comment.