Skip to content

Commit

Permalink
fix: fetch before checking out feature branch
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmitr committed Jun 14, 2024
1 parent ba285db commit 31bf7a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish-bindings-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
git config --global user.name "github-actions"
git config --global push.autoSetupRemote true
if [ "${{ env.LDK_BRANCH_NAME }}" != "main" ]; then
git fetch
git checkout -b ${{ env.TARGET_BRANCH_PREFIX }}${{ env.LDK_BRANCH_NAME }}
git pull origin ${{ env.TARGET_BRANCH_PREFIX }}${{ env.LDK_BRANCH_NAME }} || true
fi
Expand Down Expand Up @@ -71,7 +72,7 @@ jobs:
git commit -m "Update bindings."
if [ "${{ env.LDK_BRANCH_NAME }}" != "main" ]; then
git push origin ${{ env.TARGET_BRANCH_PREFIX }}${{ env.LDK_BRANCH_NAME }}
git push origin ${{ env.TARGET_BRANCH_PREFIX }}${{ env.LDK_BRANCH_NAME }}
else
git push origin master
git push origin master
fi

0 comments on commit 31bf7a6

Please sign in to comment.