From 2a0d0d4d628ed97391f445f7cb68f34468ca6cb8 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Tue, 12 Dec 2023 12:59:28 +0100 Subject: [PATCH] Generate the JSON matrix from the proper branch --- .github/workflows/native-build-development.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/native-build-development.yml b/.github/workflows/native-build-development.yml index f1555418e7..2286aea749 100644 --- a/.github/workflows/native-build-development.yml +++ b/.github/workflows/native-build-development.yml @@ -16,7 +16,9 @@ jobs: outputs: matrix: ${{ steps.generate.outputs.matrix }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + ref: ${{ github.event_name == 'workflow_dispatch' && github.event.ref || 'development' }} - id: generate run: | json=$(.github/generate-native-matrix.sh | tr -d '\n') @@ -31,7 +33,7 @@ jobs: fail-fast: false matrix: ${{ fromJson(needs.generate-json-matrix.outputs.matrix) }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: ${{ github.event_name == 'workflow_dispatch' && github.event.ref || 'development' }}