Skip to content

Commit

Permalink
Updated Draft Release Github action to fetch the tag name (#286)
Browse files Browse the repository at this point in the history
env.GITHUB_REF is replaced with github.ref_name as this variable
contains the branch or tag name that triggered the workflow run.

Signed-off-by: Dharmjit Singh <[email protected]>
  • Loading branch information
Dharmjit Singh authored Dec 14, 2021
1 parent c7e7960 commit 3265e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/draft-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
go-version: 1.16

- name: Build Release Artifacts
run: IMG="projects.registry.vmware.com/cluster_api_provider_bringyourownhost/cluster-api-byoh-controller:${{ env.GITHUB_REF }}" make build-release-artifacts
run: IMG="projects.registry.vmware.com/cluster_api_provider_bringyourownhost/cluster-api-byoh-controller:${{ github.ref_name }}" make build-release-artifacts

- name: Publish Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 3265e01

Please sign in to comment.