Skip to content

Commit

Permalink
Merge pull request #262 from cloudskiff/homebrew-github-action
Browse files Browse the repository at this point in the history
Add homebrew bump formula github action on release event
  • Loading branch information
eliecharra authored Feb 15, 2021
2 parents 8e72b0f + f9e546b commit 4f2f271
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -221,12 +212,3 @@ workflows:
only: /^v.*/
branches:
ignore: /.*/
- bump-homebrew-core:
context: driftctl-homebrew
requires:
- release
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
12 changes: 12 additions & 0 deletions .github/workflows/homebrew.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4f2f271

Please sign in to comment.