mirror of
https://github.com/jimeh/emacs-builds.git
synced 2026-02-19 11:56:40 +00:00
refactor(build): avoid release publishing race conditions
Only run release jobs after all build jobs have completed, ensure only one release job runs at a time, and also ensure update casks only runs once after all release jobs have completed.
This commit is contained in:
27
.github/workflows/_update-casks.yml
vendored
Normal file
27
.github/workflows/_update-casks.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
name: _update-casks
|
||||
concurrency:
|
||||
group: _update-casks
|
||||
cancel-in-progress: false
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
os:
|
||||
description: GitHub Actions runner OS
|
||||
type: string
|
||||
required: false
|
||||
default: "ubuntu-latest"
|
||||
secrets:
|
||||
TAP_REPO_TOKEN:
|
||||
description: Personal Access Token for Homebrew Tap repo
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
emacs-builds:
|
||||
runs-on: ${{ inputs.os }}
|
||||
steps:
|
||||
- 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 }}
|
||||
Reference in New Issue
Block a user