0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-15 03:01:37 -05:00

Fixed error about long filename

- echoing the data should avoid issues with piping in data through a
  file redirection
This commit is contained in:
Daniel Lockyer 2023-07-10 15:05:28 +02:00 committed by Daniel Lockyer
parent 389f480c96
commit f50e878cb2

View file

@ -43,7 +43,7 @@ jobs:
- name: Get metadata (push)
if: github.event_name == 'push'
run: |
NUMBER_OF_COMMITS=$(jq '.event.commits | length' < '${{ env.GITHUB_CONTEXT }}')
NUMBER_OF_COMMITS=$(echo '${{ env.GITHUB_CONTEXT }}' | jq '.event.commits | length')
echo "There are $NUMBER_OF_COMMITS commits in this push."
echo "BASE_COMMIT=$(git rev-parse HEAD~$NUMBER_OF_COMMITS)" >> $GITHUB_ENV