2022-10-03 06:30:21 -04:00
|
|
|
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: |
|
2022-10-03 06:51:57 -04:00
|
|
|
echo "${{ github.event.pull_request.title }}." > "changelog.d/${{ github.event.pull_request.number }}".misc
|
2022-10-03 06:30:21 -04:00
|
|
|
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
|