From 88f47746e46dd576f190280689b9b64f3d1dfce8 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 2 Jul 2021 00:13:17 +0100 Subject: [PATCH] fix(cask): trigger cask update in homebrew tap after publishing release --- .github/workflows/build.yml | 11 ++++++++--- .github/workflows/dispatch-cask-update.yml | 15 --------------- 2 files changed, 8 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/dispatch-cask-update.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ec70759..61edb0d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} diff --git a/.github/workflows/dispatch-cask-update.yml b/.github/workflows/dispatch-cask-update.yml deleted file mode 100644 index c46d9a9..0000000 --- a/.github/workflows/dispatch-cask-update.yml +++ /dev/null @@ -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 }}