correctly use outputs

This commit is contained in:
João Moreno 2021-04-06 17:42:57 +02:00
parent c123695312
commit baeae37965
No known key found for this signature in database
GPG key ID: 896B853774D1A575

View file

@ -22,9 +22,9 @@ jobs:
echo "::set-output name=should_run::${{ !contains(fromJson('["admin", "write"]'), fromJson(steps.get_permissions.outputs.data).permission) }}"
- name: Get file changes
uses: trilom/file-changes-action@ce38c8ce2459ca3c303415eec8cb0409857b4272
if: ${{ steps.control.should_run }}
if: ${{ steps.control.outputs.should_run }}
- name: Check for yarn.lock changes
if: ${{ steps.control.should_run }}
if: ${{ steps.control.outputs.should_run }}
run: |
cat $HOME/files.json | jq -e '.[] | test("yarn\\.lock$") | not' \
|| (echo "Changes to yarn.lock files aren't allowed in PRs." && exit 1)