Add workflow to auto update Homebrew Casks#411
Merged
mjcheetham merged 1 commit intomicrosoft:mainfrom Jul 24, 2020
Merged
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
mjcheetham
commented
Jul 23, 2020
mjcheetham
commented
Jul 23, 2020
| type: cask | ||
| version: ${{ steps.version.outputs.result }} | ||
| sha256: ${{ steps.hash.outputs.result }} | ||
| alwaysUsePullRequest: true |
Member
Author
There was a problem hiding this comment.
Similarly to the GCM Core workflow, we always create PRs rather than push a commit immediately to give us one more 'gate'.
mjcheetham
commented
Jul 23, 2020
| - name: Update scalar-azrepos Cask | ||
| uses: mjcheetham/update-homebrew@v1.1 | ||
| with: | ||
| token: ${{ secrets.HOMEBREW_TOKEN }} |
Member
Author
There was a problem hiding this comment.
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.
mjcheetham
commented
Jul 23, 2020
| with: | ||
| asset: Installers_macOS_Release.zip | ||
| hash: sha256 | ||
| token: ${{ secrets.GITHUB_TOKEN }} |
Member
Author
There was a problem hiding this comment.
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.
derrickstolee
approved these changes
Jul 23, 2020
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a GitHub workflow that is triggered on creation and publish of a release on GitHub, to update the
scalarandscalar-azreposCasks on the microsoft/git Homebrew Tap.