Don't hardcode default branch

This commit is contained in:
TheAssassin 2024-06-01 17:41:02 +02:00
parent efefc01be6
commit 9e12dbade4
1 changed files with 2 additions and 2 deletions

View File

@ -43,10 +43,10 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
tag: ${{ steps.tag.outputs.tag }}
platforms: linux/amd64
tag_with_latest: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
tag_with_latest: ${{ gitea.ref == format('refs/heads/{0}', gitea.event.repository.default_branch) }}
- name: Trigger redeployment
if: gitea.ref == 'refs/heads/main'
if: gitea.ref == format('refs/heads/{0}', gitea.event.repository.default_branch
env:
UPDATE_URL: ${{ secrets.UPDATE_URL }}
UPDATE_TOKEN: ${{ secrets.UPDATE_TOKEN }}