-
Notifications
You must be signed in to change notification settings - Fork 9
44 lines (40 loc) · 1.18 KB
/
prep-release.yaml
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
name: release-pr
on:
push:
branches:
- ops/support-automated-releases
# TODO: how should this be triggered?
# - prep-release-v[0-9]+\.[0-9]+\.[0-9]+
workflow_dispatch:
inputs:
version:
description: Version to release (ex. `v0.1.0`)
required: false
type: string
jobs:
make-release-pr:
permissions:
id-token: write
pull-requests: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- uses: chainguard-dev/actions/setup-gitsign@main
- name: Install cargo-release
uses: taiki-e/install-action@v1
with:
tool: cargo-release,just,cargo-get
- name: Determine version
id: determine-version
env:
VERSION: ${{inputs.version}}
run: |
echo value=$(just print-version) >> GITHUB_OUTPUT
# TODO: We should update the CHANGELOG to the new version
- uses: cargo-bins/release-pr@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# TODO: We should configure the PR text
version: ${{ steps.determine-version.outputs.value }}