Skip to content

Commit

Permalink
fix release version to use run_number from the dispatch event payload
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed Feb 19, 2024
1 parent 1f35d8e commit a307bdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
- name: Create Release Variables
run: |
export RELEASE_VERSION="${{vars.RELEASE_VERSION_PREFIX}}.${{github.run_number}}"
export RELEASE_VERSION="${{vars.RELEASE_VERSION_PREFIX}}.${{ github.event.client_payload.run_number }}
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
export RELEASE_TAG="v${RELEASE_VERSION}"
echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_ENV
Expand All @@ -103,7 +103,7 @@ jobs:
repo: context.repo.repo,
tag_name: process.env.RELEASE_TAG,
body: require('fs').readFileSync('${{ github.workspace }}/release/release-body.md', 'utf8'),
target_commitish: '${{ github.ref_name }}'
target_commitish: '${{ github.event.client_payload.ref_name }}'
});
const files =
Expand Down

0 comments on commit a307bdf

Please sign in to comment.