From 331066347e58b51525ed992635b5786145a56a5e Mon Sep 17 00:00:00 2001 From: Mathieu Kardous <84793247+mkardous-silabs@users.noreply.github.com> Date: Thu, 12 Dec 2024 18:15:00 -0500 Subject: [PATCH] Update upload artifact action to v4 (#3) --- .github/workflows/build-and-publish.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index d4fd98c..49c6456 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -8,8 +8,12 @@ on: jobs: build: - if: github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/main' + if: > + github.event.workflow_run.conclusion == 'success' && + github.event.workflow_run.workflow_id == github.event.workflow_run.workflow_id && + github.ref == 'refs/heads/main' runs-on: ubuntu-latest + concurrency: build-and-publish steps: - name: Checkout repository @@ -27,7 +31,7 @@ jobs: run: npm run build - name: Publish to GitHub - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: action path: dist