Update CLI reference #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bump Spin | |
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 >>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 <[email protected]> | |
author: spinframeworkbot <[email protected]> | |
signoff: true | |
token: ${{ secrets.PAT }} |