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:
parent
389f480c96
commit
f50e878cb2
1 changed files with 1 additions and 1 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue