Skip to content

Commit

Permalink
Rename version step to check for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIPv4 committed Jan 23, 2025
1 parent 878c439 commit 656ddd7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:

jobs:
version:
check:
runs-on: ubuntu-latest

outputs:
Expand Down Expand Up @@ -37,8 +37,8 @@ jobs:
contents: write

# We only tag on pushes to main, when the version has changed
needs: version
if: ${{ github.ref == 'refs/heads/main' && needs.version.outputs.version != '' }}
needs: check
if: ${{ github.ref == 'refs/heads/main' && needs.check.outputs.version != '' }}

steps:
- name: Checkout
Expand All @@ -49,8 +49,8 @@ jobs:
- name: Tag version
run: |
set -e -o pipefail
git tag "${{ needs.version.outputs.version }}" "${{ github.event.after }}"
git push origin "${{ needs.version.outputs.version }}"
git tag "${{ needs.check.outputs.version }}" "${{ github.event.after }}"
git push origin "${{ needs.check.outputs.version }}"
publish:
runs-on: ubuntu-latest
Expand All @@ -59,8 +59,8 @@ jobs:
packages: write

# Version changes in any branch can be published
needs: version
if: ${{ needs.version.outputs.version != '' }}
needs: check
if: ${{ needs.check.outputs.version != '' }}

steps:
- name: Checkout commit
Expand Down

0 comments on commit 656ddd7

Please sign in to comment.