Skip to content

Commit

Permalink
Simplify base-ref fetch
Browse files Browse the repository at this point in the history
refspec defaults to refs/heads.
And since this is a throwaway clone, we can safely create a local branch
matching the remote name without concern for collision.
  • Loading branch information
jasonkarns committed Apr 9, 2020
1 parent f295e9a commit 9483a9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/lint-checksums.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Fetch base_ref HEAD
run: git fetch --depth=1 origin +refs/heads/${{github.base_ref}}:refs/remotes/origin/${{github.base_ref}}
- run: git fetch --depth=1 origin +${{github.base_ref}}
- run: npm ci
- run: npm run lint:checksums -- origin/${{github.base_ref}}

0 comments on commit 9483a9c

Please sign in to comment.