Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/update-cli-reference.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
uses: fermyon/actions/spin/setup@v1
uses: fermyon/actions/spin/setup@v1
with:
version: canary

Just missing a with: line prior to the customizations. (Don't commit this change, just used it to sketch out.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops! Thanks!

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 }}