Skip to content

Commit

Permalink
chore!: 2025-01-04 23:02:12 +0100
Browse files Browse the repository at this point in the history
  • Loading branch information
trueNAHO committed Jan 4, 2025
1 parent ac39451 commit 77f1d12
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ jobs:

- id: get-derivations
run: |
if ${{ github.event_name == 'pull_request' }}; then
git diff --name-only HEAD~1 HEAD
else
git diff --name-only \
${{ github.event.before }} ${{ github.event.after }}
fi |
jq --raw-input --raw-output --slurp 'split("\n")[:-1]' \
>> $changed_files
changed_files="$(
if ${{ github.event_name == 'pull_request' }}; then
git diff --name-only HEAD~1 HEAD
else
git diff --name-only \
${{ github.event.before }} ${{ github.event.after }}
fi |
jq --raw-input --raw-output --slurp 'split(\"\n\")[:-1]'
)"
printf '[BEGIN]%s[END]' "$changed_files"
Expand Down

0 comments on commit 77f1d12

Please sign in to comment.