Skip to content

ci: Create workflow update-homebrew-formula.yml #11

ci: Create workflow update-homebrew-formula.yml

ci: Create workflow update-homebrew-formula.yml #11

name: Update Homebrew Formula
on:
workflow_dispatch:
pull_request:
jobs:
update-homefrew-formula:
runs-on: ubuntu-latest
container:
image: homebrew/brew:latest
options: --user root
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: lacework/docs_lw
ref: current
path: docs_lw
token: ${{ secrets.TOKEN }}
- name: Update CLI Version
env:
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
run: |
cd docs_lw
echo ${{ github.workspace }}
sudo apt-get update -y
sudo apt-get install gpg-agent -y
echo "$GPG_SECRET_KEY" | base64 --decode | gpg --import --no-tty --batch --yes
make update-cli-version