From fee1a5f2cbd58aaa394f5884ff71036a842e4e1c Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Mon, 6 May 2024 19:43:36 +0200 Subject: [PATCH] github-action: fix snapshoty --- .github/workflows/snapshoty.yml | 10 ++++------ .github/workflows/test-linux.yml | 8 ++++---- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/snapshoty.yml b/.github/workflows/snapshoty.yml index 1c16b5d93..b4740deaf 100644 --- a/.github/workflows/snapshoty.yml +++ b/.github/workflows/snapshoty.yml @@ -17,15 +17,13 @@ jobs: # used by opbeans .NET to reference the on commit nuget packages # TODO: update opbeans to use our feedz.io packages - - uses: actions/download-artifact@v3 + - name: Retrieve the artifact uploaded from `test-linux.yml` workflow + uses: actions/download-artifact@v4 with: name: snapshoty-linux path: build/output - - # - uses: actions/download-artifact@v3 - # with: - # name: snapshoty-windows - # path: build/output + github-token: ${{ secrets.GITHUB_TOKEN }} + run-id: ${{ github.event.workflow_run.id }} - name: Display structure of downloaded files run: find build -type f diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index 0ff91a1d4..40fdea6fd 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -41,12 +41,12 @@ jobs: - name: Package run: ./build.sh pack - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: github.event_name == 'push' && startswith(github.ref, 'refs/heads') with: - name: snapshoty-linux - path: build/output/* - retention-days: 1 + name: snapshoty-linux + path: build/output/* + retention-days: 1 tests: runs-on: ubuntu-latest