-
Notifications
You must be signed in to change notification settings - Fork 308
50 lines (43 loc) · 1.86 KB
/
Copy pathrust-sdk-release.yml
File metadata and controls
50 lines (43 loc) · 1.86 KB
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
name: Bump Spin Rust Templates SDK Dependency
on:
repository_dispatch:
types:
- rust-sdk-release
jobs:
create-pr:
name: Create PR with Spin Rust Templates SDK Dependency Bump
runs-on: ubuntu-latest
steps:
# Checkout the repository
- uses: actions/checkout@v4
# Run script to update the templates
- name: Bump Rust Templates SDK Dependency
shell: bash
run: ./scripts/bump-rust-template-sdk.sh ${{ github.event.client_payload.version }}
# Run script to update the examples
- name: Bump Rust Examples SDK Dependency
shell: bash
run: ./scripts/bump-rust-examples-sdk.sh ${{ github.event.client_payload.version }}
# Import GPG key for signing commits
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
# Create the pull request
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: "chore(rust-sdk-release): bump Spin Rust SDK to ${{ github.event.client_payload.version }}"
title: "chore(rust-sdk-release): bump Spin Rust SDK to ${{ github.event.client_payload.version }}"
body: |
Update the Spin Rust Templates & Examples SDK dependency to ${{ github.event.client_payload.version }}.
branch: bump-spin-rust-sdk-${{ github.event.client_payload.version }}
base: main
delete-branch: true
committer: spinframeworkbot <202838904+spinframeworkbot@users.noreply.github.com>
author: spinframeworkbot <202838904+spinframeworkbot@users.noreply.github.com>
signoff: true
token: ${{ secrets.SPINFRAMEWORKBOT_PR_PAT }}