-
Notifications
You must be signed in to change notification settings - Fork 19
56 lines (48 loc) · 1.7 KB
/
update-cli-reference.yml
File metadata and controls
56 lines (48 loc) · 1.7 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
51
52
53
54
55
56
name: Update CLI reference
on:
workflow_dispatch:
# repository_dispatch:
# types:
# - spin-release
jobs:
create-pr:
name: Create PR with CLI reference bumped
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download Spin
uses: fermyon/actions/spin/setup@v1
with:
version: canary # for testing
- name: Create CLI reference front matter
run: |
cat >./content/v3/cli-reference.md << EOF
title = "Command Line Reference"
template = "main"
date = "2025-01-01T00:00:01Z"
[extra]
url = "https://github.com/spinframework/spin-docs/blob/main/content/v3/cli-reference.md"
---
EOF
- name: Generate reference doc
run: spin maintenance generate-reference >>./content/v3/cli-reference.md
- 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
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
commit-message: "Update Spin CLI reference to latest"
title: "Update Spin CLI reference to latest"
body: "Update Spin CLI reference to latest"
branch: bump-spin-cli-reference
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.PAT }}