Skip to content

Commit

Permalink
Add a git-ref input and use product-version input to specify checkout…
Browse files Browse the repository at this point in the history
… git reference (#26)
  • Loading branch information
SBGoods committed Jan 6, 2023
1 parent b877ef3 commit 7b2f6c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
description: 'setup-go Go Version'
required: true
type: string
git-ref:
description: 'branch, tag or SHA to checkout'
required: false
type: string
secrets:
gpg-private-key:
description: 'GPG Private Key'
Expand All @@ -27,6 +31,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.git-ref }}
fetch-depth: 0
- uses: actions/setup-go@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/hashicorp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.product-version }}
# Allow tag to be fetched when ref is a commit
fetch-depth: 0
- uses: actions/setup-go@v3
Expand Down

0 comments on commit 7b2f6c6

Please sign in to comment.