diff options
author | David Robertson <davidr@element.io> | 2022-10-03 11:30:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 11:30:21 +0100 |
commit | 7a441c4f30b5da51251dea3d3cd78b287b341595 (patch) | |
tree | e3e086f570e89230fc288dd4d65915283ec2a7af /.github/workflows | |
parent | Always build Rust extension in release mode (#14009) (diff) | |
download | synapse-7a441c4f30b5da51251dea3d3cd78b287b341595.tar.xz |
Protoype automatic changelogs for dependabot PRs (#13998)
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/dependabot_changelog.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/dependabot_changelog.yml b/.github/workflows/dependabot_changelog.yml new file mode 100644 index 0000000000..9fef12a91c --- /dev/null +++ b/.github/workflows/dependabot_changelog.yml @@ -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 |