-
-
Notifications
You must be signed in to change notification settings - Fork 86
52 lines (44 loc) · 1.6 KB
/
release_prepare.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
name: Release Prepare
on:
workflow_dispatch:
inputs:
tag:
type: string
required: true
description: "Tag for the next release. Ex.: v5.0.0"
env:
NEXT_RELEASE_TAG: ${{ github.event.inputs.tag }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
release-script-test:
uses: ./.github/workflows/release-script-tests.yml
prepare-release-and-pull-request:
permissions:
contents: write
pull-requests: write
needs: release-script-test
runs-on: ubuntu-latest
if: ${{ needs.release-script-test.result == 'success' }}
env:
CXX: clang++-14
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Install dependencies
run: pip3 install -r ./tools/release/requirements.txt
- name: Update source code versions
run: ./tools/release/update_versions.py
- name: Ada Build
run: cmake -B build && cmake --build build
- name: Ada Test
run: ctest --output-on-failure --test-dir build
- name: Create PR with code updates for new release
uses: peter-evans/create-pull-request@f3a21bf3404eae73a97f65817ab35f351a1a63fe #v5.0.0
with:
commit-message: "chore: release ${{ env.NEXT_RELEASE_TAG }}"
branch: "release/${{ env.NEXT_RELEASE_TAG }}"
title: "chore: release ${{ env.NEXT_RELEASE_TAG }}"
token: ${{ env.GITHUB_TOKEN }}
body: |
This pull PR updates the source code version to ${{ env.NEXT_RELEASE_TAG }}
delete-branch: true
reviewers: "lemire,anonrig"