diff --git a/.github/workflows/publish-bindings-go.yaml b/.github/workflows/publish-bindings-go.yaml index 29c1d3e05..d2bc82f5b 100644 --- a/.github/workflows/publish-bindings-go.yaml +++ b/.github/workflows/publish-bindings-go.yaml @@ -26,9 +26,11 @@ jobs: git config --global user.email "github-actions@github.com" git config --global user.name "github-actions" git config --global push.autoSetupRemote true + git config --global pull.ff only 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 - name: Download bindings