Skip to content

Commit eaeadcc

Browse files
authored
Fix conditional for latest tag on GHCR (#889)
1 parent 88bbccb commit eaeadcc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/test-library.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,11 @@ jobs:
744744
}}'
745745
-t $CONTAINER_TAG .
746746
- name: Tag latest on GHCR
747-
if: github.ref == 'ref/head/develop'
747+
if: >-
748+
github.event_name == 'push' &&
749+
github.ref == format(
750+
'refs/heads/{0}', github.event.repository.default_branch
751+
)
748752
run: >-
749753
REGISTRY_URL="ghcr.io/abhinavsingh/proxy.py";
750754
LATEST_TAG=$REGISTRY_URL:latest;

0 commit comments

Comments
 (0)