Skip to content

Commit

Permalink
fix syntax again in release github workflow (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbloss authored Apr 16, 2024
1 parent 36b2388 commit cfffcf3
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ permissions:
contents: write

jobs:
dump_workflow_run:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github.event.client_payload.bump) }}
run: echo "$GITHUB_CONTEXT"

release:
runs-on: ubuntu-latest
steps:
Expand All @@ -29,12 +21,18 @@ jobs:
token: ${{ secrets.ORG_GITHUB_TOKEN }}
- name: Fetch All Tags
run: git fetch --force --tags
- name: Get version bump
id: bump
env:
VERSION_BUMP: ${{ toJson(github.event.client_payload.bump) }}
run: |
echo version_bump=$(echo $VERSION_BUMP | tr -d "\"") >> $GITHUB_OUTPUT
- name: Determine Next Version
id: next_version
uses: zwaldowski/semver-release-action@v4
with:
dry_run: true
bump: ${{ toJson(github.event.client_payload.bump) }}
bump: ${{ steps.bump.outputs.version_bump }}
prefix: "v"
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go
Expand Down

0 comments on commit cfffcf3

Please sign in to comment.