Skip to content

Commit

Permalink
#8082: use github event.ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ttmchiou committed Jun 6, 2024
1 parent af0656b commit 11acc43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- name: Prepare
id: prep
run: echo "::set-output name=tag::$(echo ${GITHUB_REF#refs/heads/} | tr / -)"
run: echo "::set-output name=tag::$(echo ${{ github.event.ref }} | cut -d '/' -f 3 | tr / -)"
build-artifact:
needs: identify-docker-image
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-docker-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- name: Prepare
id: prep
run: echo "::set-output name=tag::$(echo ${GITHUB_REF#refs/heads/} | tr / -)"
run: echo "::set-output name=tag::$(echo ${{ github.event.ref }} | cut -d '/' -f 3 | tr / -)"
- uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@v2.0.0
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand Down

0 comments on commit 11acc43

Please sign in to comment.