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 add data/reusables/code-scanning/codeql-query-tables
|
||||||
git commit -m "Update CodeQL query tables"
|
git commit -m "Update CodeQL query tables"
|
||||||
git push origin $branchname
|
git push -u origin $branchname
|
||||||
|
|
||||||
echo "Creating pull request..."
|
echo "Creating pull request..."
|
||||||
gh pr create \
|
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 }}
|
branchname=codeql-cli-update-${{ steps.semmle-code.outputs.OPENAPI_COMMIT_SHA }}
|
||||||
|
|
||||||
branchCheckout=$(git checkout -b $branchname)
|
branchCheckout=$(git checkout -b $branchname)
|
||||||
if [[! $? -eq 0 ]]; then
|
if [[ ! $? -eq 0 ]]; then
|
||||||
echo "Branch $branchname already exists in `github/docs-internal`. Exiting..."
|
echo "Branch $branchname already exists in `github/docs-internal`. Exiting..."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Update CodeQL CLI data"
|
git commit -m "Update CodeQL CLI data"
|
||||||
git push origin $branchname
|
git push -u origin $branchname
|
||||||
|
|
||||||
echo "Creating pull request..."
|
echo "Creating pull request..."
|
||||||
gh pr create \
|
gh pr create \
|
||||||
|
|||||||
Reference in New Issue
Block a user