Skip to content

Commit

Permalink
ci: change the rountine getting tag name in docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tamada committed Jun 17, 2022
1 parent 3900036 commit c0a14e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ jobs:
- name: Git Tag name
id: vars
run: |
echo "GITHUB_REF: $GITHUB_REF"
echo "env.TAG: ${{ env.TAG }}"
gh release view --json tagName --jq .tagName
git tag --sort version:refname
tag=$(git tag --sort version:refname | tail -1)
echo "::set-output name=tag::${tag}"
tag=$(gh release view --json tagName --jq .tagName)
echo "::set-output name=tag::${tag##v}"
# docker image
- name: Docker Buildx
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_path: dist/${{ matrix.target }}/${{ matrix.asset_name }}.tar.gz
asset_path: dist/${{ matrix.asset_name }}.tar.gz
asset_name: ${{ matrix.asset_name }}.tar.gz
asset_content_type: application/x-gzip
upload_url: ${{ needs.site.outputs.upload_url }}

0 comments on commit c0a14e2

Please sign in to comment.