Skip to content

Commit 73cbc95

Browse files
committed
Fix ref extraction
1 parent acfc6c0 commit 73cbc95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@ jobs:
4040
with:
4141
context: .
4242
file: ./Dockerfile
43-
push: ${{ github.ref_type == 'tag' && startsWith(github.action_ref, 'v') }}
43+
push: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
4444
tags: |
4545
${{ secrets.DOCKERHUB_USERNAME }}/flightlog:latest
46-
${{ secrets.DOCKERHUB_USERNAME }}/flightlog:${{ github.action_ref }}
46+
${{ secrets.DOCKERHUB_USERNAME }}/flightlog:${{ github.ref_name }}
4747
- name: Create Release
48-
if: ${{ github.ref_type == 'tag' && startsWith(github.action_ref, 'v') }}
48+
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
4949
uses: actions/create-release@v1
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
5252
with:
5353
tag_name: ${{ github.ref }}
54-
release_name: ${{ github.ref }}
54+
release_name: ${{ github.ref_name }}
5555
body: |
5656
Release automatically created by GitHub Actions
5757
draft: false

0 commit comments

Comments
 (0)