From 48775324b21ebdd05b99b42e56d9e841d605cbee Mon Sep 17 00:00:00 2001 From: Dario Pranjic <96529060+Knerio@users.noreply.github.com> Date: Wed, 29 May 2024 01:13:12 +0200 Subject: [PATCH] Update update-version.yml --- .github/workflows/update-version.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index d40e9ff..2204b21 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -4,6 +4,10 @@ on: release: types: [published] +permissions: + contents: write + + jobs: update-readme: runs-on: ubuntu-latest @@ -27,9 +31,7 @@ jobs: id: update_readme run: | LATEST_VERSION=${{ steps.get_latest_release.outputs.version }} - # Replace the version string in the Gradle dependency line sed -i "s/de\.derioo:javautils:[0-9]*\.[0-9]*\.[0-9]*/de.derioo:javautils:${LATEST_VERSION}/g" README.md - # Replace the version string in the Maven dependency line sed -i "s/[0-9]*\.[0-9]*\.[0-9]*<\/version>/${LATEST_VERSION}<\/version>/g" README.md - name: Commit Changes