Skip to content

Commit

Permalink
New attempt for update requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianPfaff committed Jun 4, 2024
1 parent 5e67cd9 commit 419ab98
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/update-requirements.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
name: Update requirements.txt

permissions:
contents: write
pull-requests: write

on: # yamllint disable-line rule:truthy
on:
pull_request:
branches:
- main
Expand All @@ -15,8 +15,7 @@ on: # yamllint disable-line rule:truthy
jobs:
update_requirements:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Check out repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -47,6 +46,9 @@ jobs:
- name: Prepare commit
run: sudo chown -Rc $UID .git/

- name: Print git status
run: git status

# Create Pull Request step
- name: Create Pull Request with applied fixes
id: cpr
Expand All @@ -68,6 +70,7 @@ jobs:
# Push new commit if applicable (for now works only on PR from same repository, not from forks)
- name: Prepare commit
run: sudo chown -Rc $UID .git/

- name: Commit and push applied linter fixes
uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down

0 comments on commit 419ab98

Please sign in to comment.