Add homebrew bump formula github action on release event

main
William Beuil 2021-02-15 16:25:46 +01:00
parent 8e72b0fc7a
commit f9e546bce6
No known key found for this signature in database
GPG Key ID: BED2072C5C2BF537
2 changed files with 12 additions and 18 deletions

View File

@ -132,15 +132,6 @@ jobs:
name: "Update Lambda version" name: "Update Lambda version"
command: | command: |
aws lambda update-function-configuration --function-name $FUNCTION_NAME --environment "{\"Variables\":{\"LATEST_VERSION\":\"$CIRCLE_TAG\"}}" 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: workflows:
nightly: nightly:
jobs: jobs:
@ -221,12 +212,3 @@ workflows:
only: /^v.*/ only: /^v.*/
branches: branches:
ignore: /.*/ 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