mirror of
https://github.com/github/codeql-action.git
synced 2026-01-02 04:30:14 +08:00
26 lines
966 B
YAML
26 lines
966 B
YAML
name: Check Expected Release Files
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/check-expected-release-files.yml
|
|
- src/defaults.json
|
|
# Run checks on reopened draft PRs to support triggering PR checks on draft PRs that were opened
|
|
# by other workflows.
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
|
|
jobs:
|
|
check-expected-release-files:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout CodeQL Action
|
|
uses: actions/checkout@v3
|
|
- name: Check Expected Release Files
|
|
run: |
|
|
bundle_version="$(cat "./src/defaults.json" | jq -r ".bundleVersion")"
|
|
set -x
|
|
for expected_file in "codeql-bundle.tar.gz" "codeql-bundle-linux64.tar.gz" "codeql-bundle-osx64.tar.gz" "codeql-bundle-win64.tar.gz"; do
|
|
curl --location --fail --head --request GET "https://github.com/github/codeql-action/releases/download/$bundle_version/$expected_file" > /dev/null
|
|
done
|