Skip to content

Commit 7d846e8

Browse files
committed
feat: automatically update latest version
1 parent 7e4b7d0 commit 7d846e8

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest-l
1212
if: ${{ !contains(github.event.head_commit.message, 'chore(release)') }}
1313
permissions:
14-
contents: write # to be able to publish a GitHub release
15-
issues: write # to be able to comment on released issues
16-
pull-requests: write # to be able to comment on released pull requests
14+
contents: write
15+
issues: write
16+
pull-requests: write
1717

1818
steps:
1919
- name: Checkout
@@ -60,6 +60,14 @@ jobs:
6060
env:
6161
GITHUB_TOKEN: ${{ secrets.BLIBLA_SEMANTIC_RELEASE }}
6262

63+
- name: Update version numbers in README
64+
if: steps.semanticrelease.outputs.new-release-published == 'true'
65+
run: |
66+
VERSION="${{ steps.semanticrelease.outputs.release-version }}"
67+
68+
# Replace version numbers in Docker image tags
69+
sed -i "s/timpietruskyblibla\/runpod-worker-comfy:[0-9]\+\.[0-9]\+\.[0-9]\+/timpietruskyblibla\/runpod-worker-comfy:$VERSION/g" README.md
70+
6371
- name: Set environment variables
6472
if: steps.semanticrelease.outputs.new-release-published == 'true'
6573
run: |

0 commit comments

Comments
 (0)