Update standard-versioning-for-docker.yaml

This commit is contained in:
Yasser Isa 2024-03-07 08:22:59 -07:00 committed by GitHub
parent 56a8041c31
commit 25d827af9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -19,9 +19,9 @@ jobs:
if [ "${{ github.ref_name }}" != "" ] && [ "${{ github.ref_name }}" != "main" ]; then
echo "tags=${{ github.ref_name }},${{ github.sha }}" >> $GITHUB_OUTPUT
fi
if [ "${{ github.ref_name }}" = "main" ]; then
echo "tags=latest,${{ github.sha }}" >> $GITHUB_OUTPUT
fi
#if [ "${{ github.ref_name }}" = "main" ]; then
#echo "tags=latest,${{ github.sha }}" >> $GITHUB_OUTPUT
#fi
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "tags=${{ github.event.pull_request.head.ref }},${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT
echo "tags=latest,${{ github.event.pull_request.head.ref }},${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT
fi