diff --git a/.github/workflows/community.yml b/.github/workflows/community.yml index 5642879..42ab98a 100644 --- a/.github/workflows/community.yml +++ b/.github/workflows/community.yml @@ -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' @@ -27,6 +31,7 @@ jobs: steps: - uses: actions/checkout@v3 with: + ref: ${{ inputs.git-ref }} fetch-depth: 0 - uses: actions/setup-go@v3 with: diff --git a/.github/workflows/hashicorp.yml b/.github/workflows/hashicorp.yml index b4dcc9d..c180207 100644 --- a/.github/workflows/hashicorp.yml +++ b/.github/workflows/hashicorp.yml @@ -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