Skip to content

Commit

Permalink
Running git fetch before git push in test Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CatChen committed Aug 22, 2022
1 parent cb34451 commit 80bdc96
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ jobs:
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Git fetch
env:
TEST_BRANCH_NAME: ${{ github.head_ref }}
run: |
git fetch --unshallow origin
git checkout $TEST_BRANCH_NAME
- name: Make commit
env:
SHA: ${{ github.sha }}
Expand Down

0 comments on commit 80bdc96

Please sign in to comment.