infra: image: fixes c35db0f
This commit is contained in:
@@ -15,12 +15,13 @@ jobs:
|
|||||||
- name: Check for changes before building
|
- name: Check for changes before building
|
||||||
id: image-changes
|
id: image-changes
|
||||||
run: |
|
run: |
|
||||||
echo "branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITEA_OUTPUT
|
branch_name="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
|
||||||
|
echo "branch_name=$branch_name" >> $GITEA_OUTPUT
|
||||||
|
|
||||||
if [[ "${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" == "${{ gitea.event.repository.default_branch }}" ]]; then
|
if [[ "$branch_name" == "${{ gitea.event.repository.default_branch }}" ]]; then
|
||||||
echo "image_tag=latest"
|
echo "image_tag=latest" >> $GITEA_OUTPUT
|
||||||
else
|
else
|
||||||
echo "image_tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
|
echo "image_tag=$branch_name" >> $GITEA_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! git diff ${{ gitea.event.before }} ${{ gitea.sha }} --no-patch --exit-code .docker; then
|
if ! git diff ${{ gitea.event.before }} ${{ gitea.sha }} --no-patch --exit-code .docker; then
|
||||||
|
|||||||
Reference in New Issue
Block a user