From 3f9572cf47bc7f3150303cda15d8a64a2e6680cb Mon Sep 17 00:00:00 2001 From: Alessandro Kreslin Date: Wed, 10 Apr 2024 15:02:36 -0400 Subject: [PATCH] improved syntax --- .github/workflows/publish_validator.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_validator.yml b/.github/workflows/publish_validator.yml index 8707042..baf9b31 100644 --- a/.github/workflows/publish_validator.yml +++ b/.github/workflows/publish_validator.yml @@ -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 @@ -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 }} @@ -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: