Skip to content

Commit 673673e

Browse files
authored
ci: Use github.ref_name instead of ref
1 parent b9ceaa3 commit 673673e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/push-images.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
IMAGE_NAME: ghcr.io/tomkerkhove/microservices-with-api-management-monolith
2525
steps:
2626
- uses: actions/checkout@v2
27-
- name: Determine image tag from Release (${{ github.ref }})
27+
- name: Determine image tag from Release (${{ github.ref_name }})
2828
if: ${{ github.event_name == 'release' }}
29-
run: echo "IMAGE_TAG=${{ github.ref }}" >> $GITHUB_ENV
29+
run: echo "IMAGE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
3030
- name: Determine image tag from manual trigger (${{ inputs.imageTag }})
3131
if: ${{ github.event_name == 'workflow_dispatch' }}
3232
run: echo "IMAGE_TAG=${{ inputs.imageTag }}" >> $GITHUB_ENV
@@ -47,9 +47,9 @@ jobs:
4747
IMAGE_NAME: ghcr.io/tomkerkhove/microservices-with-api-management-services-order
4848
steps:
4949
- uses: actions/checkout@v2
50-
- name: Determine image tag from Release (${{ github.ref }})
50+
- name: Determine image tag from Release (${{ github.ref_name }})
5151
if: ${{ github.event_name == 'release' }}
52-
run: echo "IMAGE_TAG=${{ github.ref }}" >> $GITHUB_ENV
52+
run: echo "IMAGE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
5353
- name: Determine image tag from manual trigger (${{ inputs.imageTag }})
5454
if: ${{ github.event_name == 'workflow_dispatch' }}
5555
run: echo "IMAGE_TAG=${{ inputs.imageTag }}" >> $GITHUB_ENV
@@ -70,9 +70,9 @@ jobs:
7070
IMAGE_NAME: ghcr.io/tomkerkhove/microservices-with-api-management-services-shipment
7171
steps:
7272
- uses: actions/checkout@v2
73-
- name: Determine image tag from Release (${{ github.ref }})
73+
- name: Determine image tag from Release (${{ github.ref_name }})
7474
if: ${{ github.event_name == 'release' }}
75-
run: echo "IMAGE_TAG=${{ github.ref }}" >> $GITHUB_ENV
75+
run: echo "IMAGE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
7676
- name: Determine image tag from manual trigger (${{ inputs.imageTag }})
7777
if: ${{ github.event_name == 'workflow_dispatch' }}
7878
run: echo "IMAGE_TAG=${{ inputs.imageTag }}" >> $GITHUB_ENV
@@ -93,9 +93,9 @@ jobs:
9393
IMAGE_NAME: ghcr.io/tomkerkhove/microservices-with-api-management-services-product
9494
steps:
9595
- uses: actions/checkout@v2
96-
- name: Determine image tag from Release (${{ github.ref }})
96+
- name: Determine image tag from Release (${{ github.ref_name }})
9797
if: ${{ github.event_name == 'release' }}
98-
run: echo "IMAGE_TAG=${{ github.ref }}" >> $GITHUB_ENV
98+
run: echo "IMAGE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
9999
- name: Determine image tag from manual trigger (${{ inputs.imageTag }})
100100
if: ${{ github.event_name == 'workflow_dispatch' }}
101101
run: echo "IMAGE_TAG=${{ inputs.imageTag }}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)