diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3123514..738943e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,7 @@ jobs: - name: Determine Version id: version env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.TOKEN }} run: | # Get latest release tag (if any) latest_tag=$(gh release view --json tagName --jq .tagName || echo "v0.0.0") @@ -46,12 +46,12 @@ jobs: fi # Determine version bump type from PR labels - labels="${{ toJSON(github.event.pull_request.labels.*.name) }}" - if echo "$labels" | jq -e 'contains(["major"])' > /dev/null; then + labels=$(echo '${{ toJSON(github.event.pull_request.labels.*.name) }}') + if echo "$labels" | jq -e 'any(. == "major")' > /dev/null; then major=$((major + 1)) minor=0 patch=0 - elif echo "$labels" | jq -e 'contains(["minor"])' > /dev/null; then + elif echo "$labels" | jq -e 'any(. == "minor")' > /dev/null; then minor=$((minor + 1)) patch=0 else @@ -108,7 +108,7 @@ jobs: body_path: release_notes.md draft: false prerelease: false - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.TOKEN }} - name: Update Documentation if: success()