mirror of
https://github.com/jimeh/homebrew-emacs-builds.git
synced 2026-02-19 13:16:38 +00:00
fix(workflow): split livecheck and update casks into separate jobs
This commit is contained in:
14
.github/workflows/update-casks.yml
vendored
14
.github/workflows/update-casks.yml
vendored
@@ -16,7 +16,7 @@ on:
|
||||
default: ""
|
||||
|
||||
jobs:
|
||||
update-casks:
|
||||
livecheck:
|
||||
runs-on: macos-12
|
||||
steps:
|
||||
- name: Checkout tap repository
|
||||
@@ -41,11 +41,16 @@ jobs:
|
||||
jimeh/emacs-builds/${{ github.event.inputs.cask }}
|
||||
| tee livecheck-results.json
|
||||
- name: Upload livecheck-results.json artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: livecheck-results.json
|
||||
path: livecheck-results.json
|
||||
if-no-files-found: error
|
||||
|
||||
update-casks:
|
||||
runs-on: macos-12
|
||||
needs: [livecheck]
|
||||
steps:
|
||||
- name: Checkout build-emacs-for-macos for emacs-builder tool
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -56,6 +61,11 @@ jobs:
|
||||
go-version: "1.21"
|
||||
- name: Build emacs-builder tool
|
||||
run: make build
|
||||
- name: Download livecheck-results.json artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: livecheck-results.json
|
||||
path: ./
|
||||
- name: Update casks
|
||||
run: >-
|
||||
bin/emacs-builder
|
||||
|
||||
Reference in New Issue
Block a user