mirror of
https://github.com/jimeh/homebrew-emacs-builds.git
synced 2026-02-19 08:36:39 +00:00
ci(cask): allow optionally updating a single cask instead of all
This commit is contained in:
13
.github/workflows/update-casks.yml
vendored
13
.github/workflows/update-casks.yml
vendored
@@ -6,6 +6,10 @@ on:
|
||||
- cron: "0 3 * * *"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
cask:
|
||||
description: "Specific cask to update (all if empty)"
|
||||
required: false
|
||||
default: ""
|
||||
extraArgs:
|
||||
description: "Extra arguments passed to emacs-builder cask update"
|
||||
required: false
|
||||
@@ -25,10 +29,17 @@ jobs:
|
||||
mkdir -p "$(brew --repo)/Library/Taps/jimeh"
|
||||
ln -s "${{ github.workspace }}/tap" \
|
||||
"$(brew --repo)/Library/Taps/jimeh/homebrew-emacs-builds"
|
||||
- name: brew livecheck
|
||||
- name: brew livecheck (all casks)
|
||||
if: ${{ github.event.inputs.cask == '' }}
|
||||
run: >-
|
||||
brew livecheck --json --quiet --tap jimeh/emacs-builds
|
||||
| tee livecheck-results.json
|
||||
- name: brew livecheck (specific cask)
|
||||
if: ${{ github.event.inputs.cask != '' }}
|
||||
run: >-
|
||||
brew livecheck --json --quiet
|
||||
jimeh/emacs-builds/${{ github.event.inputs.cask }}
|
||||
| tee livecheck-results.json
|
||||
- name: Upload livecheck-results.json artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user