Skip to content

Check submodule pointers #1731

Check submodule pointers

Check submodule pointers #1731

name: Check submodule pointers
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
types:
- opened
- synchronize
- ready_for_review
- reopened
schedule:
- cron: '42 12 * * *'
permissions:
contents: read
jobs:
check-submodules:
runs-on: ubuntu-latest
if: github.repository == 'github/vscode-codeql-starter'
steps:
- uses: actions/checkout@v3
- name: Compare submodule pointers to lgtm.com branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
CODEQL_ACTUAL_SHA="$(git rev-parse @:./ql)"
CODEQL_EXPECTED_SHA="$(gh api repos/github/codeql/git/ref/heads/lgtm.com --jq '.object.sha')"
echo "The ql submodule currently points to $CODEQL_ACTUAL_SHA. The tip of the lgtm.com branch of github/codeql is $CODEQL_EXPECTED_SHA."
if [ "$CODEQL_EXPECTED_SHA" != "$CODEQL_ACTUAL_SHA" ]; then
echo "::error:: The ql submodule is out of date with the lgtm.com branch of github/codeql. Expected $CODEQL_EXPECTED_SHA, found $CODEQL_ACTUAL_SHA."
exit 1
fi
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy