From 1b2cc6e6765317df64facb30f11c4eedae947092 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 29 Jun 2021 00:28:47 +0100 Subject: [PATCH] feat(cask): add workflow to trigger homebrew cask formula update on new release This triggers the update formulas workflow in the jimeh/homebrew-emacs-builds repo whenever a release or pre-release is created in jimeh/emacs-builds. This allows the cask formulas to automatically stay up to date with latest nightly builds. --- .github/workflows/dispatch-cask-update.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/dispatch-cask-update.yml diff --git a/.github/workflows/dispatch-cask-update.yml b/.github/workflows/dispatch-cask-update.yml new file mode 100644 index 0000000..c46d9a9 --- /dev/null +++ b/.github/workflows/dispatch-cask-update.yml @@ -0,0 +1,15 @@ +--- +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 }}