From 59926c9b5d095af86ddc5df38d8b1b92953164d4 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 1 Mar 2024 22:15:12 +0100 Subject: [PATCH] fix: :construction_worker: update ci to new gitea ref --- .gitea/workflows/divent.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/divent.yml b/.gitea/workflows/divent.yml index 318d8e2..13ec0e0 100644 --- a/.gitea/workflows/divent.yml +++ b/.gitea/workflows/divent.yml @@ -37,7 +37,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - uses: docker/build-push-action@v5 with: - push: ${{ gitea.ref == 'refs/heads/master' || startsWith(gitea.ref, 'refs/tags') }} + push: ${{ gitea.ref_name == 'master' || gitea.ref_type == 'tag' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} @@ -45,7 +45,7 @@ jobs: runs-on: ubuntu-latest container: python:3.12.2 needs: [lint] - if: startsWith(gitea.ref, 'refs/tags') + if: gitea.ref_type == 'tag' env: POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }} steps: