summaryrefslogtreecommitdiffstats
path: root/.github/workflows/release.yml
blob: 6390f46cba7e16761397526e5a6b0e0a04960a51 (plain)
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
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

      - name: Update Homebrew recipe
        uses: peter-evans/repository-dispatch@v1
        with:
          token: ${{ secrets.REPO_ACCESS_TOKEN }}
          repository: xxxserxxx/homebrew-gotop
          event-type: my-release
          client-payload: '{"tag": "${{ steps.tag_name.outputs.tag }}"}'

      - name: Update Arch AURs
        uses: peter-evans/repository-dispatch@v1
        with:
          token: ${{ secrets.REPO_ACCESS_TOKEN }}
          repository: xxxserxxx/gotop-linux
          event-type: my-release
          client-payload: '{"tag": "${{ steps.tag_name.outputs.tag }}"}'