Skip to content

Commit

Permalink
Merge pull request #801 from jerensl/ci/fix-release-bump
Browse files Browse the repository at this point in the history
ci: fix release bump
  • Loading branch information
jerensl authored Nov 9, 2024
2 parents ee3fa5e + 73f74dd commit ec65297
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bump-meshery-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Download Version
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: e2e-test-reporter
name: version-number
github-token: ${{ secrets.GH_ACCESS_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
- name: Retrieve Version
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,20 @@ jobs:
versions-check:
needs: publish-gpr
runs-on: ubuntu-latest
outputs:
current: ${{ steps.versions.outputs }}
steps:
- uses: actions/github-script@v7
id: versions
with:
result-encoding: string
script: |
let str = "${{github.event.release.tag_name}}"
let str = `${{github.event.release.tag_name}}`
return str.replace(/^v/, '')
- name: Save Release number
if: ${{ !cancelled() }}
run: |
mkdir -p ./version
echo ${{ steps.versions.outputs }} > ./version/number
echo ${{ steps.versions.outputs.result }} > ./version/number
- name: Upload Version Report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
Expand Down

0 comments on commit ec65297

Please sign in to comment.