Skip to content

Commit

Permalink
ci: avoid downloading the repository twice
Browse files Browse the repository at this point in the history
Avoid downloading the repository twice by leveraging the repository
already installed by the actions/checkout GitHub Action, instead of
downloading it again from GitHub.
  • Loading branch information
trueNAHO committed Jan 6, 2025
1 parent 3d37c54 commit f99342b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ jobs:

- id: get-derivations
run: |
nix flake show --json \
github:${{
github.repository
}}/${{
github.event.pull_request.head.sha || github.sha
}} |
nix flake show --json |
jq \
--argjson changed_files "$(
if ${{ github.event_name == 'pull_request' }}; then
Expand Down

0 comments on commit f99342b

Please sign in to comment.