diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index df4ede6..dad1ad2 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -65,11 +65,10 @@ jobs: run: | git config user.email "action@gitea.nasvincent.com" git config user.name "Gitea Action" - git tag ${{ steps.version.outputs.new_version }} - git push origin ${{ steps.version.outputs.new_version }} + git tag ${{ steps.version.outputs.new_version }} && git push origin ${{ steps.version.outputs.new_version }} || echo "Tag already exists, skipping" - name: Save new minor version run: | - curl -s -X PUT "https://gitea.nasvincent.com/api/v1/repos/${{ github.repository }}/actions/variables/VERSION_MINOR" \ + curl -sf -X PUT "https://gitea.nasvincent.com/api/v1/repos/${{ github.repository }}/actions/variables/VERSION_MINOR" \ -H "Authorization: token ${{ secrets.TOKEN }}" \ -H "Content-Type: application/json" \ -d "{\"value\": \"${{ steps.version.outputs.new_minor }}\"}"