Skip to content

Commit

Permalink
ci: v prefix for release & hotfix
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Chataigner <[email protected]>
  • Loading branch information
tchataigner committed Jun 24, 2024
1 parent fed1bb5 commit 6f23358
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/bump-version-PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ jobs:
BASE_VERSION="${BASE_VERSION_SHORT}.0"
if [[ "${{ inputs.type }}" == "hotfix" ]]; then
VERSION=${{ inputs.version }}
BASE_BRANCH="release/$BASE_VERSION_SHORT"
PR_BRANCH="${{ inputs.type }}/${{ inputs.version }}"
BASE_BRANCH="release/v$BASE_VERSION_SHORT"
PR_BRANCH="${{ inputs.type }}/v${{ inputs.version }}"
git checkout $PR_BRANCH
else
VERSION=$BASE_VERSION
BASE_BRANCH="dev"
PR_BRANCH="release/$BASE_VERSION_SHORT"
PR_BRANCH="release/v$BASE_VERSION_SHORT"
git checkout -b $PR_BRANCH
fi
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
fi
done <<< "$members"
working-directory: ${{ github.workspace }}/aptos

- name: Commit changes
run: |
git add .
Expand All @@ -119,7 +119,7 @@ jobs:
cat << 'EOF' > body.md
This is an automated release PR for version `${ env.VERSION }}`.
On merge, this will trigger the [release publish workflow](${{ github.server_url }}/${{ github.repository }}/actions/workflows/tag-release.yml), which will upload a new GitHub release with tag `${{ env.VERSION }}`.
On merge, this will trigger the [release publish workflow](${{ github.server_url }}/${{ github.repository }}/actions/workflows/tag-release.yml), which will upload a new GitHub release with tag `v${{ env.VERSION }}`.
[Workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
EOF
Expand Down

0 comments on commit 6f23358

Please sign in to comment.