Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
  • Loading branch information
PengyuanZhao committed Mar 4, 2024
1 parent 7e7e1db commit 9d0c269
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/update-homebrew-formula.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,24 @@ jobs:
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master

# - name: Create local Homebrew tap
# working-directory: homebrew-tap
# run: |
# brew tap-new lacework/lacework-cli --no-git
# sudo cp -r . $(brew --repository)/Library/Taps/lacework/homebrew-lacework-cli/
- name: Create local Homebrew tap
working-directory: homebrew-tap
run: |
brew tap-new lacework/lacework-cli --no-git
sudo cp -r . $(brew --repository)/Library/Taps/lacework/homebrew-lacework-cli/
- name: Update CLI Version
working-directory: homebrew-tap
env:
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
# CI: true
CI: true
run: |
sudo chmod -R 777 $(brew --repository)/Library/Taps/lacework/homebrew-lacework-cli/.git
cd $(brew --repository)/Library/Taps/lacework/homebrew-lacework-cli/
echo "$GPG_SECRET_KEY" | base64 --decode | gpg --import --no-tty --batch --yes
make update-cli-version
# sudo chmod -R 777 $(brew --repository)/Library/Taps/lacework/homebrew-lacework-cli/.git
# cd $(brew --repository)/Library/Taps/lacework/homebrew-lacework-cli/

# - name: Notify Slack on Failure
# if: failure()
# uses: slackapi/slack-github-action@v1.25.0
Expand Down

0 comments on commit 9d0c269

Please sign in to comment.