Skip to content

Merge pull request #930 from globus/pre-commit-ci-update-config #436

Merge pull request #930 from globus/pre-commit-ci-update-config

Merge pull request #930 from globus/pre-commit-ci-update-config #436

name: update-pr-references
on:
push:
branches:
- main
jobs:
update_pr_numbers_in_change_fragments:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.x'
- name: update any PR numbers in change fragments
run: |
python ./changelog.d/update-pr-refs.py
if [ "$(git status --porcelain)" = "" ]; then
echo "no changes"
else
git add changelog.d/
git \
-c user.name="GitHub Actions" \
-c user.email="[email protected]" \
commit -m '(actions) update PR references'
git push origin
fi