From 5c36d848cc1a4a321069675bbc1eb442fa3df1c3 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Sat, 13 Jan 2024 18:24:23 +0100 Subject: [PATCH] FIX: upload to different artifact names https://github.com/actions/upload-artifact/blob/v4.1.0/docs/MIGRATION.md\#multiple-uploads-to-the-same-named-artifact --- .github/workflows/pre-commit.yml | 5 +++-- .github/workflows/requirements.yml | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 9a289dab..fb819f07 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -131,7 +131,7 @@ jobs: uses: actions/upload-artifact@v4 with: if-no-files-found: error - name: pre-commit-changes + name: pre-commit-changes-taplo path: ${{ steps.diff.outputs.diff }} push: @@ -151,8 +151,9 @@ jobs: token: ${{ secrets.token || secrets.GITHUB_TOKEN }} - uses: actions/download-artifact@v4 with: - name: pre-commit-changes + merge-multiple: true path: . + pattern: pre-commit-changes* - if: always() name: Push changes run: | diff --git a/.github/workflows/requirements.yml b/.github/workflows/requirements.yml index 060f497a..093b639f 100644 --- a/.github/workflows/requirements.yml +++ b/.github/workflows/requirements.yml @@ -36,7 +36,7 @@ jobs: matrix: ${{ fromJSON(needs.create-matrix.outputs.matrix) }} steps: - uses: actions/checkout@v4 - - uses: ComPWA/update-pip-constraints@main + - uses: ComPWA/update-pip-constraints@v1 with: python-version: ${{ matrix.python-version }} @@ -62,6 +62,9 @@ jobs: with: token: ${{ secrets.token }} - uses: actions/download-artifact@v4 + with: + merge-multiple: true + path: artifact - run: ls -A - name: Move artifacts to correct location run: |