Merge pull request #262 from cloudskiff/homebrew-github-action

Add homebrew bump formula github action on release event
main
Elie 2021-02-15 16:34:11 +01:00 committed by GitHub
commit 4f2f271820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 18 deletions

View File

@ -132,15 +132,6 @@ jobs:
name: "Update Lambda version"
command: |
aws lambda update-function-configuration --function-name $FUNCTION_NAME --environment "{\"Variables\":{\"LATEST_VERSION\":\"$CIRCLE_TAG\"}}"
bump-homebrew-core:
macos:
xcode: 12.3.0
steps:
- run:
name: "Bump driftctl formula"
command: |
brew install-bundler-gems -d -v
brew bump-formula-pr driftctl --url https://github.com/cloudskiff/driftctl/archive/$CIRCLE_TAG.tar.gz -d -v
workflows:
nightly:
jobs:
@ -221,12 +212,3 @@ workflows:
only: /^v.*/
branches:
ignore: /.*/
- bump-homebrew-core:
context: driftctl-homebrew
requires:
- release
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/

12
.github/workflows/homebrew.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: Homebrew Bump Formula
on:
release:
types: [published]
jobs:
homebrew:
runs-on: macos-latest
steps:
- uses: dawidd6/action-homebrew-bump-formula@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
formula: driftctl