mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-31 19:59:01 +01:00
Protoype automatic changelogs for dependabot PRs (#13998)
This commit is contained in:
parent
343038c3c3
commit
7a441c4f30
2 changed files with 24 additions and 0 deletions
23
.github/workflows/dependabot_changelog.yml
vendored
Normal file
23
.github/workflows/dependabot_changelog.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
name: Write changelog for dependabot PR
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
|
||||
jobs:
|
||||
add-changelog:
|
||||
runs-on: 'ubuntu-latest'
|
||||
if: ${{ github.actor == 'dependabot[bot]' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
- name: Write, commit and push changelog
|
||||
run: |
|
||||
echo "${{ github.event.pull_request.title }}." > "changelog.d/${{ github.event.pull_request.number }}".docker
|
||||
git add changelog.d
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config user.name "GitHub Actions"
|
||||
git commit -m "Changelog"
|
||||
git push
|
||||
shell: bash
|
1
changelog.d/13998.misc
Normal file
1
changelog.d/13998.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Prototype a workflow to automatically add changelogs to dependabot PRs.
|
Loading…
Reference in a new issue