Skip to content

Commit 02cbe5d

Browse files
Dave Bartolomeodocs-bot
andauthored
Fix sync-codeql-cli.yml issues on latest runners (#53846)
Co-authored-by: docs-bot <[email protected]>
1 parent fd6bc6f commit 02cbe5d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/generate-code-scanning-query-lists.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
147147
git add data/reusables/code-scanning/codeql-query-tables
148148
git commit -m "Update CodeQL query tables"
149-
git push origin $branchname
149+
git push -u origin $branchname
150150
151151
echo "Creating pull request..."
152152
gh pr create \

.github/workflows/sync-codeql-cli.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ jobs:
9191
branchname=codeql-cli-update-${{ steps.semmle-code.outputs.OPENAPI_COMMIT_SHA }}
9292
9393
branchCheckout=$(git checkout -b $branchname)
94-
if [[! $? -eq 0 ]]; then
94+
if [[ ! $? -eq 0 ]]; then
9595
echo "Branch $branchname already exists in `github/docs-internal`. Exiting..."
9696
exit 0
9797
fi
9898
git add .
9999
git commit -m "Update CodeQL CLI data"
100-
git push origin $branchname
100+
git push -u origin $branchname
101101
102102
echo "Creating pull request..."
103103
gh pr create \

0 commit comments

Comments
 (0)