Skip to content

Commit

Permalink
fix(ci): Unshallow the repository before fetching from remote
Browse files Browse the repository at this point in the history
This is (hopefully) the last and final follow-up fix for:

- Issue #696
- Commit ca298a2
- Commit fcd4e18

My bad. :(
  • Loading branch information
guihkx committed Sep 12, 2024
1 parent fcd4e18 commit 023f152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: |
set -ex
git remote add upstream https://github.com/nuttyartist/notes.git
git fetch upstream +refs/heads/master:refs/remotes/upstream/master
git fetch --unshallow upstream master
# NOTE: The following should give us the previous commit hash of the base branch, but that will
# only work reliably for 'push' and pull_request events. For workflow_dispatch events, we
# have to fallback to the default branch ('master'), until a better solution is found...
Expand Down

0 comments on commit 023f152

Please sign in to comment.