Skip to content

Commit

Permalink
Merge pull request #360 from SmallGaoX/patch-1
Browse files Browse the repository at this point in the history
Fix workflow execution error #356
  • Loading branch information
deitch authored Sep 27, 2024
2 parents 5efb5a5 + ef08134 commit 8f5995f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
run: |
case '${{ github.event_name }}' in
push)
firstCommit='${{ github.event.commits[0].id }}'
lastCommit='${{ github.event.commits[-1].id }}'
firstCommit='${{ github.event.before }}'
lastCommit='${{ github.event.after }}'
;;
pull_request)
firstCommit='${{ github.event.pull_request.base.sha }}'
Expand All @@ -45,9 +45,9 @@ jobs:
echo "Files changed: $changedFiles"
NON_MD_FILES=$(echo "$changedFiles" | grep -v '\.md$' || true)
if [ -n "$NON_MD_FILES" ]; then
echo "non_doc_files_changed=true" >> $GITHUB_ENV
echo "non_doc_files_changed=true" >> $GITHUB_OUTPUT
else
echo "non_doc_files_changed=false" >> $GITHUB_ENV
echo "non_doc_files_changed=false" >> $GITHUB_OUTPUT
fi
ci:
name: CI
Expand Down

0 comments on commit 8f5995f

Please sign in to comment.