-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(*): add workflow to create Spin bump PR on release event; a few sc…
…ript updates Signed-off-by: Vaughn Dice <[email protected]>
- Loading branch information
Showing
2 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Bump Spin | ||
|
||
on: | ||
repository_dispatch: | ||
types: | ||
- spin-release | ||
|
||
jobs: | ||
create-pr: | ||
name: Create PR with Spin Formula bumped | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Bump Spin Formula | ||
shell: bash | ||
run: ./scripts/bump-spin-formula.sh ${{ github.event.client_payload.version }} | ||
|
||
- 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@v4 | ||
with: | ||
commit-message: "chore(spin.rb): bump Spin to ${{ github.event.client_payload.version }}" | ||
title: "chore(spin.rb): bump Spin to ${{ github.event.client_payload.version }}" | ||
body: Update the Spin formula with ${{ github.event.client_payload.version }} | ||
branch: bump-spin-${{ github.event.client_payload.version }} | ||
base: main | ||
delete-branch: true | ||
committer: fermybot <[email protected]> | ||
author: fermybot <[email protected]> | ||
signoff: true |
This file contains 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