Skip to content

Commit

Permalink
Fix sync-codeql-cli.yml issues on latest runners (#53846)
Browse files Browse the repository at this point in the history
Co-authored-by: docs-bot <[email protected]>
  • Loading branch information
dbartol and docs-bot authored Jan 10, 2025
1 parent fd6bc6f commit 02cbe5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate-code-scanning-query-lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
git add data/reusables/code-scanning/codeql-query-tables
git commit -m "Update CodeQL query tables"
git push origin $branchname
git push -u origin $branchname
echo "Creating pull request..."
gh pr create \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sync-codeql-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ jobs:
branchname=codeql-cli-update-${{ steps.semmle-code.outputs.OPENAPI_COMMIT_SHA }}
branchCheckout=$(git checkout -b $branchname)
if [[! $? -eq 0 ]]; then
if [[ ! $? -eq 0 ]]; then
echo "Branch $branchname already exists in `github/docs-internal`. Exiting..."
exit 0
fi
git add .
git commit -m "Update CodeQL CLI data"
git push origin $branchname
git push -u origin $branchname
echo "Creating pull request..."
gh pr create \
Expand Down

0 comments on commit 02cbe5d

Please sign in to comment.