-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
5 changed files
with
117 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters