Don't hardcode default branch
This commit is contained in:
parent
efefc01be6
commit
61c53a862b
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue