mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 14:35:00 +01:00
39 lines
1.3 KiB
YAML
39 lines
1.3 KiB
YAML
name: Process Dependabot PRs
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened]
|
|
|
|
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
|
|
uses: dependabot/fetch-metadata@dbb049abf0d677abbd7f7eee0375145b417fdd34 # v2.2.0
|
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.ref }}
|
|
persist-credentials: false
|
|
|
|
- name: Update Version Number in Other Files
|
|
uses: jacobtomlinson/gha-find-replace@f1069b438f125e5395d84d1c6fd3b559a7880cb5 # v3
|
|
with:
|
|
find: ${{ steps.dependabot-metadata.outputs.previous-version }}
|
|
replace: ${{ steps.dependabot-metadata.outputs.new-version }}
|
|
regex: false
|
|
exclude: CHANGES.rst
|
|
|
|
- name: Commit & Push Changes to PR
|
|
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
|
|
with:
|
|
message: 'Update version number in other files'
|
|
committer_name: GitHub Actions
|
|
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
|