diff --git a/.github/workflows/requirements-cron.yml b/.github/workflows/requirements-cron.yml index df68f807..de434c06 100644 --- a/.github/workflows/requirements-cron.yml +++ b/.github/workflows/requirements-cron.yml @@ -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 diff --git a/.github/workflows/requirements-pr.yml b/.github/workflows/requirements-pr.yml index 59371e64..41c3154b 100644 --- a/.github/workflows/requirements-pr.yml +++ b/.github/workflows/requirements-pr.yml @@ -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: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0d84a65a..a4137cc5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: