From 024fccf8bb131eef7804f96953320623a9f91a3f Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 19 Mar 2025 17:38:16 +0100 Subject: [PATCH] chore(github): update integration workflow --- .github/workflows/integration.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 0ecb5bd1..556b75c5 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -3,20 +3,21 @@ name: integration on: workflow_run: workflows: ["module"] - types: - - completed + types: [completed] jobs: nuxt: runs-on: ${{ matrix.os }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} + permissions: contents: read pull-requests: read strategy: matrix: - os: [ubuntu-latest] # macos-latest, windows-latest + os: [ubuntu-latest] node: [22] steps: @@ -25,8 +26,8 @@ jobs: with: repository: benjamincanac/app-ui3 - - name: Set short SHA - run: echo "COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV + - name: Set commit SHA from triggering workflow + run: echo "COMMIT=${GITHUB_EVENT_WORKFLOW_RUN_HEAD_SHA:0:7}" >> $GITHUB_ENV - name: Install pnpm uses: pnpm/action-setup@v4 @@ -49,13 +50,15 @@ jobs: vue: runs-on: ${{ matrix.os }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} + permissions: contents: read pull-requests: read strategy: matrix: - os: [ubuntu-latest] # macos-latest, windows-latest + os: [ubuntu-latest] node: [22] steps: @@ -64,8 +67,8 @@ jobs: with: repository: benjamincanac/app-ui3-vue - - name: Set short SHA - run: echo "COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV + - name: Set commit SHA from triggering workflow + run: echo "COMMIT=${GITHUB_EVENT_WORKFLOW_RUN_HEAD_SHA:0:7}" >> $GITHUB_ENV - name: Install pnpm uses: pnpm/action-setup@v4