From 76cba0ad921667d8d4c4ff9fa362d4c3109cf562 Mon Sep 17 00:00:00 2001 From: Martin Bachl <36962174+bachlmn@users.noreply.github.com> Date: Tue, 16 Dec 2025 13:44:40 +0100 Subject: [PATCH] fix(JF-1693): Fixes update for workflow README for release. --- .github/workflows/continuous-delivery.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/continuous-delivery.yml b/.github/workflows/continuous-delivery.yml index 9fe8942..bfbd09e 100644 --- a/.github/workflows/continuous-delivery.yml +++ b/.github/workflows/continuous-delivery.yml @@ -7,6 +7,11 @@ on: paths-ignore: # - '.github/**' - '**/README.md' + +permissions: + contents: write + pull-requests: write + env: # This will suppress any download for dependencies and plugins or upload messages which would clutter the console log. # `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work. @@ -97,14 +102,18 @@ jobs: # extract list of mime-types from magic.xml and append to README.md grep -Po '(?<=)[^<]+' src/main/resources/magic.xml | sort | uniq | xargs printf "\t%s\n" >> README.md - git add README.md - git commit -m "Edit README.md to contain correct version" - - - name: Push changes - uses: ad-m/github-push-action@master + - name: Create PR for README update + uses: peter-evans/create-pull-request@v8 with: - branch: master - github_token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} + base: master + branch: ci/readme-update + delete-branch: true + add-paths: | + README.md + commit-message: "Edit README.md to contain correct version" + title: "docs: update README for ${{ steps.semanticversion.outputs.new_version }}" + body: "Automated README update after release." - name: Create release uses: softprops/action-gh-release@v2