Skip to content

Commit

Permalink
fetch all branches in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bullet-ant committed Sep 15, 2024
1 parent 2ad1322 commit c7086a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
# Step 1: Checkout the latest code from the repo
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

# Step 2: Install jq to parse package.json
- name: Install jq
Expand Down Expand Up @@ -53,6 +55,7 @@ jobs:
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "GitHub Actions"
git fetch origin
git checkout main
git merge --no-ff app
git push origin main
Expand Down

0 comments on commit c7086a7

Please sign in to comment.