Skip to content

Commit

Permalink
improved syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro100 committed Apr 10, 2024
1 parent 83baf9d commit 3f9572c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/publish_validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
check-versions:
name: check-version-job
runs-on: ubuntu-latest
outputs:
has-version-changed: ${{ steps.version-change-check.outputs.VERSION_CHANGED }}
defaults:
run:
working-directory: ./gbfs-validator
Expand All @@ -27,6 +29,7 @@ jobs:
run: echo "VERSION=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT

- name: Check if version changed
id: version-change-check
env:
CURRENT_VERSION: ${{ steps.get_current_published_version.outputs.VERSION }}
LOCAL_VERSION: ${{ steps.get_current_local_version.outputs.VERSION }}
Expand All @@ -42,7 +45,7 @@ jobs:
build-publish:
name: build-publish-job
needs: [check-versions]
if: needs.check-versions.outputs.VERSION_CHANGED == 'true'
if: needs.check-versions.outputs.has-version-changed == 'true'
runs-on: ubuntu-latest
defaults:
run:
Expand Down

0 comments on commit 3f9572c

Please sign in to comment.