diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a30e7ce..adab510 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,9 +11,9 @@ jobs: runs-on: ubuntu-latest-l if: ${{ !contains(github.event.head_commit.message, 'chore(release)') }} permissions: - contents: write # to be able to publish a GitHub release - issues: write # to be able to comment on released issues - pull-requests: write # to be able to comment on released pull requests + contents: write + issues: write + pull-requests: write steps: - name: Checkout @@ -60,6 +60,14 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.BLIBLA_SEMANTIC_RELEASE }} + - name: Update version numbers in README + if: steps.semanticrelease.outputs.new-release-published == 'true' + run: | + VERSION="${{ steps.semanticrelease.outputs.release-version }}" + + # Replace version numbers in Docker image tags + sed -i "s/timpietruskyblibla\/runpod-worker-comfy:[0-9]\+\.[0-9]\+\.[0-9]\+/timpietruskyblibla\/runpod-worker-comfy:$VERSION/g" README.md + - name: Set environment variables if: steps.semanticrelease.outputs.new-release-published == 'true' run: |