We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51c47f6 commit 6fc2fadCopy full SHA for 6fc2fad
.github/workflows/tests.yml
@@ -260,6 +260,13 @@ jobs:
260
- name: Checkout Repository
261
uses: actions/checkout@v3
262
263
+ - name: Check If Is PR
264
+ id: is_pr
265
+ run: |
266
+ if [[ "${{ github.event_name }}" != 'pull_request' ]]; then
267
+ echo "::set-output name=sha::type=sha,format=short,prefix="
268
+ fi
269
+
270
- name: Extract metadata (tags, labels) for Docker
271
id: meta
272
uses: docker/metadata-action@e5622373a38e60fb6d795a4421e56882f2d7a681
@@ -268,6 +275,7 @@ jobs:
275
tags: |
276
type=ref,event=pr
277
type=ref,event=branch
278
+ ${{ steps.is_pr.outputs.sha }}
279
280
- name: Extract Tag
273
281
id: meta2
0 commit comments