Skip to content

Commit

Permalink
feat: automatically update latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPietrusky committed Nov 18, 2024
1 parent 7e4b7d0 commit 7d846e8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 7d846e8

Please sign in to comment.