-
Notifications
You must be signed in to change notification settings - Fork 59
60 lines (57 loc) · 1.64 KB
/
create-release-pr.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
56
57
58
59
60
name: Open a PR for a new release
on:
workflow_dispatch:
inputs:
crate:
description: Which crate to release
required: true
type: choice
options:
- neo4rs
- neo4rs-macros
version:
description: >-
What version to release.
Can be one of 'major', 'minor', 'patch', or a concrete version.
See https://github.com/crate-ci/cargo-release/blob/7527065e413b9625ccb09800b765f6c49d011c79/docs/reference.md#bump-level for more details.
required: true
type: string
env:
RUSTUP_TOOLCHAIN: stable
MSRV: 1.63.0
jobs:
make-release-pr:
permissions:
id-token: write
pull-requests: write
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: chainguard-dev/actions/setup-gitsign@main
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
- name: Set up Rust nightly
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
- name: Set up Rust MSRV
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.MSRV }}
- name: Set up Rust stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Install cargo-release
uses: baptiste0928/cargo-install@v2
with:
crate: cargo-release
- uses: cargo-bins/release-pr@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ inputs.version }}
crate-name: ${{ inputs.crate }}