mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Bumps the actions-minor group with 3 updates in the /.github/workflows directory: [actions/setup-go](https://github.com/actions/setup-go), [actions/setup-python](https://github.com/actions/setup-python) and [ruby/setup-ruby](https://github.com/ruby/setup-ruby). Updates `actions/setup-go` from 6.4.0 to 6.5.0 - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](4a3601121d...924ae3a1cd) Updates `actions/setup-python` from 6.2.0 to 6.3.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](a309ff8b42...ece7cb06ca) Updates `ruby/setup-ruby` from 1.312.0 to 1.313.0 - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](12fd324f1d...89f90524b8) --- updated-dependencies: - dependency-name: actions/setup-go dependency-version: 6.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-minor - dependency-name: actions/setup-python dependency-version: 6.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-minor - dependency-name: ruby/setup-ruby dependency-version: 1.313.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-minor ... Signed-off-by: dependabot[bot] <support@github.com>
96 lines
3.3 KiB
YAML
96 lines
3.3 KiB
YAML
name: Update Supported Enterprise Server Versions
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- .github/workflows/update-supported-enterprise-server-versions.yml
|
|
- pr-checks/update-ghes-versions.ts
|
|
|
|
jobs:
|
|
update-supported-enterprise-server-versions:
|
|
name: Update Supported Enterprise Server Versions
|
|
timeout-minutes: 45
|
|
runs-on: ubuntu-slim
|
|
if: github.repository == 'github/codeql-action'
|
|
permissions:
|
|
contents: write # needed to push commits
|
|
pull-requests: write # needed to create pull request
|
|
|
|
steps:
|
|
- name: Setup Python
|
|
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
with:
|
|
python-version: "3.13"
|
|
|
|
- name: Checkout CodeQL Action
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
|
with:
|
|
node-version: 24
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Checkout Enterprise Releases
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
with:
|
|
repository: github/enterprise-releases
|
|
token: ${{ secrets.ENTERPRISE_RELEASE_TOKEN }}
|
|
path: ${{ github.workspace }}/enterprise-releases/
|
|
sparse-checkout: releases.json
|
|
|
|
- name: Update Supported Enterprise Server Versions
|
|
working-directory: pr-checks
|
|
run: |
|
|
npx tsx update-ghes-versions.ts
|
|
rm --recursive "$ENTERPRISE_RELEASES_PATH"
|
|
env:
|
|
ENTERPRISE_RELEASES_PATH: ${{ github.workspace }}/enterprise-releases/
|
|
|
|
- name: Rebuild
|
|
run: npm run build
|
|
|
|
- name: Update git config
|
|
run: |
|
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git config --global user.name "github-actions[bot]"
|
|
|
|
- name: Commit changes
|
|
id: prepare-commit
|
|
run: |
|
|
if [[ -z $(git status --porcelain) ]]; then
|
|
echo "No changes to commit"
|
|
echo "committed=false" >> $GITHUB_OUTPUT
|
|
else
|
|
git checkout -b update-supported-enterprise-server-versions
|
|
git add .
|
|
git commit --message "Update supported GitHub Enterprise Server versions"
|
|
|
|
echo "committed=true" >> $GITHUB_OUTPUT
|
|
fi
|
|
|
|
- name: Open PR
|
|
if: github.event_name != 'pull_request' && steps.prepare-commit.outputs.committed == 'true'
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
git push origin update-supported-enterprise-server-versions
|
|
|
|
body="This PR updates the list of supported GitHub Enterprise Server versions, either because a new "
|
|
body+="version is about to be feature frozen, or because an old release has been deprecated."
|
|
body+=$'\n\n'
|
|
body+="If an old release has been deprecated, please follow the instructions in CONTRIBUTING.md to "
|
|
body+="deprecate the corresponding version of CodeQL."
|
|
|
|
gh pr create --draft \
|
|
--title "Update supported GitHub Enterprise Server versions" \
|
|
--body "$body"
|