Skip to content

Commit

Permalink
chore!: 2025-01-04 22:59:36 +0100
Browse files Browse the repository at this point in the history
  • Loading branch information
trueNAHO committed Jan 4, 2025
1 parent b2bed1c commit ac39451
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,22 @@ jobs:
with:
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }}

- id: get-changed-files
- uses: DeterminateSystems/nix-installer-action@v16
- uses: DeterminateSystems/magic-nix-cache-action@v8

- 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=\(.)"
' \
>> $GITHUB_OUTPUT
jq --raw-input --raw-output --slurp 'split("\n")[:-1]' \
>> $changed_files
- run: |
for file in ${{
fromJSON(steps.get-changed-files.outputs.changed_files)
}}; do
printf '[CHANGED FILE] %s\n' "$file"
done
printf '[BEGIN]%s[END]' "$changed_files"
- uses: DeterminateSystems/nix-installer-action@v16
- uses: DeterminateSystems/magic-nix-cache-action@v8

- id: get-derivations
run: |
nix flake show --json \
github:${{
github.repository
Expand Down

0 comments on commit ac39451

Please sign in to comment.