Fix sync-codeql-cli.yml issues on latest runners (#53846)
Co-authored-by: docs-bot <77750099+docs-bot@users.noreply.github.com>
This commit is contained in:
@@ -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 \
|
||||
|
||||
4
.github/workflows/sync-codeql-cli.yml
vendored
4
.github/workflows/sync-codeql-cli.yml
vendored
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user