-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add post-release action to run after releases (#2238)
- Loading branch information
1 parent
48dc6b4
commit 642b1ff
Showing
2 changed files
with
29 additions
and
118 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,29 @@ | ||
# Runs certain jobs after a release is published or on an as-needed basis (manually), | ||
# e.g. triggering an update to the homebrew-tap when a new version of the CLI is available | ||
|
||
name: post-release | ||
on: | ||
release: | ||
types: [released] | ||
workflow_dispatch: # on button click | ||
inputs: | ||
version: | ||
description: 'The version that was released (e.g. 1.47.0)' | ||
required: true | ||
type: string | ||
|
||
env: | ||
version: ${{ github.event.inputs.version || github.ref_name }} | ||
|
||
jobs: | ||
homebrew-tap: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger homebrew-tap update | ||
uses: benc-uk/workflow-dispatch@v1 | ||
with: | ||
workflow: autoupdate | ||
repo: smithy-lang/homebrew-tap | ||
inputs: '{ "version": "${{ env.version }}" }' | ||
# Required when using the `repo` option | ||
token: "${{ secrets.PR_TOKEN }}" |
This file was deleted.
Oops, something went wrong.