Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI #10

Merged
merged 2 commits into from
Nov 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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
Expand Down Expand Up @@ -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()
Expand Down
Loading