-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add workflow to auto update Homebrew Casks #411
Conversation
Add a GitHub workflow that is triggered on creation and publish of a release on GitHub, to update the `scalar` and `scalar-azrepos` Casks on the microsoft/git Homebrew Tap.
48ed445
to
0b383f6
Compare
type: cask | ||
version: ${{ steps.version.outputs.result }} | ||
sha256: ${{ steps.hash.outputs.result }} | ||
alwaysUsePullRequest: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly to the GCM Core workflow, we always create PRs rather than push a commit immediately to give us one more 'gate'.
- name: Update scalar-azrepos Cask | ||
uses: mjcheetham/update-homebrew@v1.1 | ||
with: | ||
token: ${{ secrets.HOMEBREW_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This token is a PAT (mine) has been added to the repository. The commits/PRs will be created as 'me'.
Would be nice if we had a 'service user' who we could use instead.
with: | ||
asset: Installers_macOS_Release.zip | ||
hash: sha256 | ||
token: ${{ secrets.GITHUB_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This token is automatically created. It only has public read access to GitHub repos, which is all we need to compute the hash from a released Scalar asset.
Add a GitHub workflow that is triggered on creation and publish of a release on GitHub, to update the
scalar
andscalar-azrepos
Casks on the microsoft/git Homebrew Tap.