Skip to content

Commit

Permalink
fix: update requirement update files
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Nov 17, 2021
1 parent 982713d commit a54de27
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/requirements-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,15 @@ jobs:
token: ${{ secrets.PAT }}
# GITHUB_TOKEN will not rerun checks after pushing to a PR branch
- uses: actions/download-artifact@v2
- run: |
[[ -f .pre-commit-config.yaml ]] && mv -f .pre-commit-config.yaml ..
[[ -d .constraints ]] && mv -f * ../.constraints/
working-directory: artifact
- run: ls -A
- name: Move artifacts to correct location
run: |
if [[ -d artifact ]]; then
cd artifact
ls -A
[[ -f .pre-commit-config.yaml ]] && mv -f .pre-commit-config.yaml ..
[[ "$(ls)" != "" ]] && mv -f * ../.constraints/
fi
- run: git status -s
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/requirements-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,14 @@ jobs:
token: ${{ secrets.PAT }}
# GITHUB_TOKEN will not rerun checks after pushing to a PR branch
- uses: actions/download-artifact@v2
- run: |
[[ -f .pre-commit-config.yaml ]] && mv -f .pre-commit-config.yaml ..
[[ -d .constraints ]] && mv -f * ../.constraints/
working-directory: artifact
- name: Move artifacts to correct location
run: |
if [[ -d artifact ]]; then
cd artifact
ls -A
[[ -f .pre-commit-config.yaml ]] && mv -f .pre-commit-config.yaml ..
[[ "$(ls)" != "" ]] && mv -f * ../.constraints/
fi
- run: git status -s
- name: Commit and push changes
run: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/ComPWA/repo-maintenance
rev: 0.0.83
rev: 0.0.86
hooks:
- id: check-dev-files
args:
Expand Down

0 comments on commit a54de27

Please sign in to comment.