Update boundary to 0.17.1 #929
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Product Formula in Tap | |
run-name: Update ${{ github.event.client_payload.name }} to ${{ github.event.client_payload.version }} | |
# This workflow will automatically update our product formulae on the release of | |
# new versions | |
on: | |
repository_dispatch: | |
types: [version-updated] | |
jobs: | |
update-formula: | |
name: Update Formula | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | |
- name: Setup Go | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 #v5.0.1 | |
with: | |
go-version-file: "util/formula_templater/go.mod" | |
- name: Build formula_templater CLI | |
run: | | |
cd util/formula_templater && go build | |
- name: Generate new formula | |
if: ${{ github.event.client_payload.cask == 'false' }} | |
run: | | |
./util/formula_templater/formula_templater \ | |
${{github.event.client_payload.name}} \ | |
${{github.event.client_payload.version}} \ | |
./util/formula_templater/config.hcl > ./Formula/${{github.event.client_payload.name}}.rb | |
- name: Generate new cask | |
if: ${{ github.event.client_payload.cask == 'true' }} | |
run: | | |
./util/formula_templater/formula_templater \ | |
-cask \ | |
${{github.event.client_payload.name}} \ | |
${{github.event.client_payload.version}} \ | |
./util/formula_templater/config.hcl > ./Casks/hashicorp-${{github.event.client_payload.name}}.rb | |
- name: Publish Change | |
run: | | |
git config user.name hc-espd-packager | |
git config user.email team-rel-eng@hashicorp.com | |
git add Formula/*.rb Casks/*.rb | |
git commit -m "Bump ${{ github.event.client_payload.name }} to ${{ github.event.client_payload.version }}" | |
# Ensure we have any changes that might have been merged before we push. This narrows the window in which a | |
# race from multiple changes happening at once can occur. Conflicts/Races could still occur though unlikley. | |
git pull --rebase | |
git push |