Skip to content

Commit

Permalink
fix create release workflow (#104)
Browse files Browse the repository at this point in the history
* fix create release workflow
* use the correct version of Go
* use the correct go version path

Signed-off-by: Ryan Cragun <[email protected]>
  • Loading branch information
ryancragun committed Aug 30, 2023
1 parent e84410f commit 03cd231
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/update_homebrew_formula.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
channel:
required: true
type: string
product:
required: true
type: string
sha:
required: true
type: string
Expand Down Expand Up @@ -68,13 +71,14 @@ jobs:
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
path: enos-checkout

- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: enos-checkout/.go-version
# Set up bob CLI
- name: Setup bob CLI
uses: hashicorp/action-setup-bob@v1
with:
github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}

# Use bob to download SHA256SUMS file from Artifactory
- name: Download artifacts
env:
Expand All @@ -87,13 +91,11 @@ jobs:
-product-name=${{ inputs.product }} \
-product-version=${{ inputs.version }} \
-pattern="${{ inputs.product }}_${{ inputs.version }}_SHA256SUMS"
# Generate Homebrew formula file (enos.rb)
- name: Generate Homebrew formula file
run: |
cd enos-checkout
go run ./tools/homebrew/... create -p ../.bob/artifacts/${{ inputs.product }}_${{ inputs.version }}_SHA256SUMS -o enos.rb
# Checkout target repo and place it in the specified relative path within the runner's main directory,
# in order to accommodate checking out multiple repos.
# A token with sufficient permissions for the target repo is required.
Expand All @@ -103,7 +105,6 @@ jobs:
repository: ${{ env.TARGET_REPO }}
path: ${{ env.TARGET_REPO_FILEPATH }}
token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}

# Create PR
- name: Create PR
run: |
Expand Down

0 comments on commit 03cd231

Please sign in to comment.