2323 with :
2424 repository : ' flouthoc/buildah' # The target repository
2525 path : ' buildah' # Checkout into a sub-directory
26- token : ${{ secrets.VENDOR_TOKEN_PODMANBOT }} Use the PAT for write access
26+ token : ${{ secrets.VENDOR_TOKEN_PODMANBOT }}
2727
2828 - name : ' Vendor Code from this repo to buildah'
2929 run : |
5050 cat go.mod
5151
5252 # Download and verify the module
53- go mod tidy
54- go mod vendor
55- go mod verify
53+ GOWORK=off go mod tidy
54+ GOWORK=off go mod vendor
55+ GOWORK=off go mod verify
5656
5757 echo "Updated go.mod:"
5858 cat go.mod
6464 git config user.email "github-actions[bot]@users.noreply.github.com"
6565
6666 BRANCH_NAME="sync/container-libs-${{ github.event.pull_request.number }}"
67- git switch -c $BRANCH_NAME
67+ git switch $BRANCH_NAME
6868
6969 git add .
7070 git commit -m "feat: Vendor changes from podmanbot/container-libs#${{ github.event.pull_request.number }}"
@@ -83,12 +83,21 @@ jobs:
8383 SELF_REPO_PR_TITLE : ${{ github.event.pull_request.title }}
8484 run : |
8585 cd buildah
86+ git pull
87+ gh repo set-default flouthoc/buildah
88+ gh repo set-default --view
8689
90+ BRANCH_NAME="sync/container-libs-${{ github.event.pull_request.number }}"
8791 PR_TITLE="Sync: ${{ env.SELF_REPO_PR_TITLE }}"
8892 PR_BODY="This PR automatically vendors changes from [repo-A#${{ env.SELF_REPO_PR_NUMBER }}](${{ env.SELF_REPO_PR_URL }})."
8993
9094 # Check if PR already exists for this branch
91- EXISTING_PR_URL=$(gh pr list --head ${{ env.BRANCH_NAME }} --json url --jq '.[0].url' 2>/dev/null || echo "")
95+ echo $BRANCH_NAME
96+ gh pr list --head $BRANCH_NAME --json url
97+ EXISTING_PR_URL=$(gh pr list --head $BRANCH_NAME --json url --jq '.[0].url' 2>/dev/null || echo "")
98+
99+ echo "Printing exisiting PR URL"
100+ echo $EXISTING_PR_URL
92101
93102 if [ -n "$EXISTING_PR_URL" ]; then
94103 echo "Found existing PR: $EXISTING_PR_URL"
0 commit comments