Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

DOC: update actions in README.md usage example #19

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ on:
jobs:
pip-constraints:
name: Update pip constraints files
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -95,7 +95,7 @@ jobs:
- "3.8"
- "3.9"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check if there are dependency changes
Expand All @@ -110,11 +110,11 @@ jobs:
push:
name: Push changes
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs:
- pip-constraints
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- uses: actions/download-artifact@v2
Expand Down Expand Up @@ -153,7 +153,7 @@ on:
jobs:
pip-constraints:
name: Update pip constraint files
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -162,24 +162,24 @@ jobs:
- "3.8"
- "3.9"
steps:
- uses: actions/checkout@v2
- uses: ComPWA/update-pip-constraints@main
- uses: actions/checkout@v4
- uses: ComPWA/update-pip-constraints@v1
with:
python-version: ${{ matrix.python-version }}

push:
name: Create PR
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs:
- pip-constraints
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
- run: rm -rf .constraints/
- run: mv artifact .constraints
- uses: peter-evans/create-pull-request@v3
- uses: peter-evans/create-pull-request@v6
with:
commit-message: "ci: update pip constraints files"
committer: GitHub <[email protected]>
Expand Down
Loading