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: