forked from smithy-lang/smithy
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (29 loc) · 899 Bytes
/
post-release.yml
File metadata and controls
33 lines (29 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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 }}
permissions:
contents: read
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
ref: 'main'
inputs: '{ "version": "${{ env.version }}" }'
# Required when using the `repo` option
token: "${{ secrets.PR_TOKEN }}"