fix(cask): trigger cask update in homebrew tap after publishing release

This commit is contained in:
2021-07-02 00:13:17 +01:00
parent 4ffe25022c
commit 88f47746e4
2 changed files with 8 additions and 18 deletions

View File

@@ -40,7 +40,7 @@ jobs:
uses: actions/checkout@v2
with:
repository: jimeh/build-emacs-for-macos
ref: "v0.6.5"
ref: "v0.6.6"
path: builder
- uses: actions/setup-go@v2
with:
@@ -96,7 +96,7 @@ jobs:
uses: actions/checkout@v2
with:
repository: jimeh/build-emacs-for-macos
ref: "v0.6.5"
ref: "v0.6.6"
path: builder
- uses: ruby/setup-ruby@v1
with:
@@ -192,9 +192,14 @@ jobs:
with:
name: dmg
path: builds
- name: Publish disk image to GitHub Release
- name: Publish disk image to a GitHub Release
run: >-
bin/emacs-builder -l debug release --plan build-plan.yml publish
${{ github.event.inputs.extraReleaseArgs }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Trigger update casks workflow in homebrew tap
run: >-
gh workflow run --repo jimeh/homebrew-emacs-builds update-casks.yml
env:
GITHUB_TOKEN: ${{ secrets.TAP_REPO_TOKEN }}

View File

@@ -1,15 +0,0 @@
---
name: Dispatch Cask Update
on:
release:
types: [published]
jobs:
dispatch-cask-update:
runs-on: ubuntu-latest
steps:
- name: Run update formulas workflow in jimeh/homebrew-emacs-builds
run: >-
gh workflow run --repo jimeh/homebrew-emacs-builds update-formulas.yml
env:
GITHUB_TOKEN: ${{ secrets.TAP_REPO_TOKEN }}