chore(github): update integration workflow

This commit is contained in:
Benjamin Canac
2025-03-19 17:38:16 +01:00
parent edb0f0afc6
commit 024fccf8bb

View File

@@ -3,20 +3,21 @@ name: integration
on: on:
workflow_run: workflow_run:
workflows: ["module"] workflows: ["module"]
types: types: [completed]
- completed
jobs: jobs:
nuxt: nuxt:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
permissions: permissions:
contents: read contents: read
pull-requests: read pull-requests: read
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest] # macos-latest, windows-latest os: [ubuntu-latest]
node: [22] node: [22]
steps: steps:
@@ -25,8 +26,8 @@ jobs:
with: with:
repository: benjamincanac/app-ui3 repository: benjamincanac/app-ui3
- name: Set short SHA - name: Set commit SHA from triggering workflow
run: echo "COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV run: echo "COMMIT=${GITHUB_EVENT_WORKFLOW_RUN_HEAD_SHA:0:7}" >> $GITHUB_ENV
- name: Install pnpm - name: Install pnpm
uses: pnpm/action-setup@v4 uses: pnpm/action-setup@v4
@@ -49,13 +50,15 @@ jobs:
vue: vue:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
permissions: permissions:
contents: read contents: read
pull-requests: read pull-requests: read
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest] # macos-latest, windows-latest os: [ubuntu-latest]
node: [22] node: [22]
steps: steps:
@@ -64,8 +67,8 @@ jobs:
with: with:
repository: benjamincanac/app-ui3-vue repository: benjamincanac/app-ui3-vue
- name: Set short SHA - name: Set commit SHA from triggering workflow
run: echo "COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV run: echo "COMMIT=${GITHUB_EVENT_WORKFLOW_RUN_HEAD_SHA:0:7}" >> $GITHUB_ENV
- name: Install pnpm - name: Install pnpm
uses: pnpm/action-setup@v4 uses: pnpm/action-setup@v4