2023-05-31 22:19:56 +02:00
|
|
|
name: Process Dependabot PRs
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2023-08-21 18:55:49 +02:00
|
|
|
types: [opened, reopened]
|
2023-05-31 22:19:56 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
process-dependabot-prs:
|
|
|
|
permissions:
|
|
|
|
pull-requests: read
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Fetch Dependabot metadata
|
|
|
|
id: dependabot-metadata
|
2023-09-22 18:53:07 +02:00
|
|
|
uses: dependabot/fetch-metadata@v1.6.0
|
2023-05-31 22:19:56 +02:00
|
|
|
|
2023-10-02 20:20:28 +02:00
|
|
|
- uses: actions/checkout@v4
|
2023-05-31 22:19:56 +02:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.ref }}
|
|
|
|
|
|
|
|
- name: Update Version Number in Other Files
|
|
|
|
uses: jacobtomlinson/gha-find-replace@v3
|
|
|
|
with:
|
|
|
|
find: ${{ steps.dependabot-metadata.outputs.previous-version }}
|
|
|
|
replace: ${{ steps.dependabot-metadata.outputs.new-version }}
|
|
|
|
regex: false
|
2023-06-03 08:28:08 +02:00
|
|
|
exclude: CHANGES.rst
|
2023-05-31 22:19:56 +02:00
|
|
|
|
|
|
|
- name: Commit & Push Changes to PR
|
2024-02-02 23:00:37 +01:00
|
|
|
uses: EndBug/add-and-commit@v9.1.4
|
2023-05-31 22:19:56 +02:00
|
|
|
with:
|
|
|
|
message: 'Update version number in other files'
|
|
|
|
committer_name: GitHub Actions
|
2023-09-22 18:53:07 +02:00
|
|
|
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
|