-
Notifications
You must be signed in to change notification settings - Fork 38
55 lines (48 loc) · 1.65 KB
/
_releaser_nightly_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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