build(deps): bump github/codeql-action from 3.25.7 to 3.25.11 #301
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Create | |
on: | |
pull_request: | |
types: [closed] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
check-release-conditions: | |
runs-on: ubuntu-latest | |
if: | | |
github.event.pull_request.merged == true && | |
github.event.pull_request.base.ref == 'main' && | |
startsWith(github.event.pull_request.head.ref, 'release/v') && | |
startsWith(github.event.pull_request.user.login, 'github-actions') | |
steps: | |
- name: Check release conditions | |
run: | | |
echo "All conditions have been met!" | |
release-script-test: | |
needs: check-release-conditions | |
uses: ./.github/workflows/release-script-tests.yml | |
create-release: | |
permissions: | |
contents: write | |
needs: release-script-test | |
runs-on: ubuntu-latest | |
if: ${{ needs.release-script-test.result == 'success' }} | |
env: | |
NEXT_RELEASE_TAG: ${{ github.event.pull_request.head.ref }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Prepare Python | |
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | |
with: | |
cache: 'pip' # caching pip dependencies | |
- name: Install dependencies | |
run: pip install -r ./tools/release/requirements.txt | |
- name: Extract Tag from branch name | |
run: | | |
NEXT_RELEASE_TAG=$(echo $NEXT_RELEASE_TAG | sed 's/^release\///') | |
echo "NEXT_RELEASE_TAG=${NEXT_RELEASE_TAG}" >> $GITHUB_ENV | |
- name: Target release Tag | |
run: echo "New tag $NEXT_RELEASE_TAG" | |
- name: Amalgamation | |
run: ./singleheader/amalgamate.py | |
- name: "Create release" | |
run: ./tools/release/create_release.py |