Skip to content

Commit

Permalink
Fix "Publish" GH Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewlacy committed Jan 19, 2025
1 parent 8c37f03 commit d9798bb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ jobs:
run: |
full_version="$(cat VERSION)"
major_version="$(echo "$full_version" | cut -f1 -d.)"
echo "full-version=$full_version" >> "$GITHUB_OUTPUT"
echo "major-version=$major_version" >> "$GITHUB_OUTPUT"
echo "full-version=$full_version" | tee -a "$GITHUB_OUTPUT"
echo "major-version=$major_version" | tee -a "$GITHUB_OUTPUT"
- name: Update versions
run: |
echo "Full version: $full_version"
echo "Major version: $major_version"
echo "Pushing tag $major_version"
git tag -f "$major_version"
git push -f origin "$major_version"
env:
full_version: ${{ steps.versions.outputs.full-version }}
major_version: ${{ steps.versions.outputs.major-version }}

0 comments on commit d9798bb

Please sign in to comment.