Skip to content

Commit

Permalink
add post-release action to run after releases (#2238)
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbaker authored Apr 10, 2024
1 parent 48dc6b4 commit 642b1ff
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 118 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/post-release.yml
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 }}"
118 changes: 0 additions & 118 deletions .github/workflows/update-brew.yml

This file was deleted.

0 comments on commit 642b1ff

Please sign in to comment.