Fix nightly release failing because of old python version #28
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: Releaser nightly build | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/_releaser_nightly_build.yml | |
workflow_call: | |
outputs: | |
commit_sha: | |
description: | | |
The commit sha of the nightly release branch/tag. | |
value: ${{ jobs.nightly-build.outputs.commit_sha }} | |
version_full: | |
description: | | |
The full version of the nightly release that was created. | |
value: ${{ jobs.nightly-build.outputs.version_full }} | |
jobs: | |
nightly-build: | |
name: 🌙 Nightly build | |
runs-on: ubuntu-22.04 | |
outputs: | |
commit_sha: ${{ steps.commit.outputs.id }} | |
version_full: ${{ steps.version.outputs.full }} | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin v4.1.7 | |
timeout-minutes: 5 | |
- name: Install python | |
uses: actions/setup-python@29a37be0a3d3e8bf5bc1eb19cd0502922f5b312a # pin v5.2.0 | |
id: setup-python | |
with: | |
python-version: 3.12 | |
- name: Configure git | |
run: | | |
git config user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
git config user.name 'github-actions[bot]' | |
timeout-minutes: 1 | |
- name: Create nightly release | |
run: python misc/releaser.py build --nightly --yes --no-gpg-sign --skip-tag | |
timeout-minutes: 2 | |
- name: Get commit for nightly tag | |
id: commit | |
run: echo "id=$(git rev-parse HEAD)" | tee -a $GITHUB_OUTPUT | |
timeout-minutes: 1 | |
- name: Parse version | |
id: version | |
run: python misc/releaser.py version | tee -a $GITHUB_OUTPUT | |
timeout-minutes: 1 |