From fcc5bd9bfc23cfcb31363a506f6936e0b95ea9d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 9 Jan 2025 10:53:26 +0100 Subject: [PATCH] Add a global success marker --- .github/workflows/qgis.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/qgis.yaml b/.github/workflows/qgis.yaml index 5a4da5c273..26f7103bed 100644 --- a/.github/workflows/qgis.yaml +++ b/.github/workflows/qgis.yaml @@ -46,6 +46,7 @@ jobs: strategy: fail-fast: false matrix: + # The versions should be set everywhere we have a == QGIS version == comment version: - '3.34' - 3.34-gdal3.8 @@ -54,6 +55,15 @@ jobs: - lr-debug - master + # == QGIS version == + outputs: + success-3-34: ${{ steps.success.outputs.success-3-34 }} + success-3-34-gdal3-8: ${{ steps.success.outputs.success-3-34-gdal3-8 }} + success-ltr: ${{ steps.success.outputs.success-ltr }} + success-lr: ${{ steps.success.outputs.success-lr }} + success-lr-debug: ${{ steps.success.outputs.success-lr-debug }} + success-master: ${{ steps.success.outputs.success-master }} + steps: - uses: actions/checkout@v4 with: @@ -130,3 +140,25 @@ jobs: path: /tmp/dpkg-versions.patch retention-days: 1 if: failure() + + # Mark as success + - id: success + run: | + version=${{ matrix.version }} + echo "::set-output name=success-${version//\./-}::true" + + success: + runs-on: ubuntu-24.04 + name: QGIS build success + timeout-minutes: 15 + needs: main + if: always() + + # == QGIS version == + steps: + - run: '[[ "${{ needs.main.outputs.success-3-34 }}" == "true" ]]' + - run: '[[ "${{ needs.main.outputs.success-3-34-gdal3-8 }}" == "true" ]]' + - run: '[[ "${{ needs.main.outputs.success-ltr }}" == "true" ]]' + - run: '[[ "${{ needs.main.outputs.success-lr }}" == "true" ]]' + - run: '[[ "${{ needs.main.outputs.success-lr-debug }}" == "true" ]]' + - run: '[[ "${{ needs.main.outputs.success-master }}" == "true" ]]'