Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -97,14 +102,18 @@ jobs:
# extract list of mime-types from magic.xml and append to README.md
grep -Po '(?<=<mime-type>)[^<]+' 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
Expand Down
Loading