fix(workflow): split livecheck and update casks into separate jobs

This commit is contained in:
2023-11-21 08:45:39 +00:00
parent eaf560d445
commit 14641e0a52

View File

@@ -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