[PR #7449/3e2fb035 backport][3.9] Bump dependencies #2475
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dependabot post-update | |
on: | |
pull_request_target: | |
action: [opened, synchronize, reopened] | |
branches: | |
- 'master' | |
- '[0-9].[0-9]+' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
post-update: | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3.0.2 | |
- name: Login | |
run: | | |
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token | |
- name: Checkout | |
run: | | |
gh pr checkout ${{ github.event.pull_request.number }} | |
- name: Setup Python | |
uses: actions/setup-python@v4.3.0 | |
- name: Cache PyPI | |
uses: actions/cache@v3.0.11 | |
with: | |
key: post-update | |
path: ~/.cache/pip | |
restore-keys: | | |
post-update- | |
- name: Update pip-tools | |
run: | | |
python -m pip install -U pip-tools | |
- name: Run pip-compile | |
run: | | |
make compile-deps | |
- name: Commit and push if needed | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Recompile requirements/constraints.txt |