feat: create automated pull requests for new Kimai Versions #287
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR uses the
peter-evans/create-pull-request
action to create a new Pull Request and a simple script based onawk
to update the version number in_config.yml
.In the current
version.yml
workflow, you used${{steps.remote_version.outputs.version}}
to get the version number. I'm not sure where this comes from. Therefore, I've adjusted the action to expect a payloadkimai_version
containing the new kimai version.Since this requires a small change to the workflow in
kimai/kimai
I've created a small Pull Request for the changes there as well: kimai/kimai#4248I've tested this on my fork, by sending the Webhook for the
repository_dispatch
manually using this script:./test-send-webhook.sh <github-token> "2.0.31"
This created the following Pull Request: cngJo#1
I've tried to use sensible defaults for commit messages and branch names. Please let me know when you have any other suggestions 😉
ATTENTION:
Please make sure the default
GITHUB_TOKEN
write access and permissions to create Pull Requests.See Workflow Permissions in the
create-pull-request
repo for more information.