Skip to content

Commit 9f2b3eb

Browse files
authored
Update sync-main.yml
1 parent 826d43d commit 9f2b3eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/sync-main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ jobs:
6161
git status
6262
6363
echo "::group::Diff between sync-main-pr and main"
64-
git diff main..sync-main-pr
64+
git diff origin/main..origin/sync-main-pr
6565
echo "::endgroup::"
6666
67-
echo "Current SHA for main: $(git rev-parse main)"
68-
echo "Current SHA for sync-main-pr: $(git rev-parse sync-main-pr)"
67+
echo "Current SHA for main: $(git rev-parse origin/main)"
68+
echo "Current SHA for sync-main-pr: $(git rev-parse origin/sync-main-pr)"
6969
- name: Create or update PR
7070
run: |
71-
gh pr create --fill -B main -H sync-main-pr --title 'Sync Main' --body "This PR syncs the latest changes from \`codeql-cli/latest\` into \`main\`."
71+
gh pr create --fill -B origin/main -H origin/sync-main-pr --title 'Sync Main' --body "This PR syncs the latest changes from \`codeql-cli/latest\` into \`main\`."
7272
exit 0
7373
env:
7474
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}

0 commit comments

Comments
 (0)