2020-03-01 23:46:57 +08:00
|
|
|
name: Post release triggers
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Get tag name
|
|
|
|
shell: bash
|
|
|
|
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF##*/})"
|
|
|
|
id: tag_name
|
|
|
|
|
2021-01-27 01:13:41 +08:00
|
|
|
- name: Trigger extensions build
|
|
|
|
uses: peter-evans/repository-dispatch@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.REPO_ACCESS_TOKEN }}
|
|
|
|
repository: xxxserxxx/gotop-builder
|
|
|
|
event-type: my-release
|
|
|
|
client-payload: '{"tag": "${{ steps.tag_name.outputs.tag }}"}'
|
|
|
|
|
2020-03-01 23:46:57 +08:00
|
|
|
- name: Update Homebrew recipe
|
|
|
|
uses: peter-evans/repository-dispatch@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.REPO_ACCESS_TOKEN }}
|
|
|
|
repository: xxxserxxx/homebrew-gotop
|
2020-03-03 03:41:55 +08:00
|
|
|
event-type: my-release
|
2020-03-01 23:46:57 +08:00
|
|
|
client-payload: '{"tag": "${{ steps.tag_name.outputs.tag }}"}'
|
2020-03-02 22:59:36 +08:00
|
|
|
|
2020-06-02 22:09:23 +08:00
|
|
|
- name: Update and inform Homebrew
|
|
|
|
uses: dawidd6/action-homebrew-bump-formula@v3
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.homebrew }}
|
|
|
|
formula: gotop
|
2021-01-26 04:08:29 +08:00
|
|
|
tag: ${{ steps.tag_name.outputs.tag }}
|
2020-06-02 22:09:23 +08:00
|
|
|
|
2020-03-02 22:59:36 +08:00
|
|
|
- name: Update Arch AURs
|
|
|
|
uses: peter-evans/repository-dispatch@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.REPO_ACCESS_TOKEN }}
|
|
|
|
repository: xxxserxxx/gotop-linux
|
2020-03-03 03:41:55 +08:00
|
|
|
event-type: my-release
|
2020-03-02 22:59:36 +08:00
|
|
|
client-payload: '{"tag": "${{ steps.tag_name.outputs.tag }}"}'
|