Skip to content

Commit

Permalink
Add a global success marker
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jan 13, 2025
1 parent 4aaddc6 commit f6f89d1
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/qgis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# The versions should be set everywhere we have a == QGIS version == comment
version:
- '3.28'
- 3.28-gdal3.6
Expand All @@ -30,6 +31,16 @@ jobs:
MAIN_BRANCH: '2.7'
MAJOR_VERSION: '2.7'

# == QGIS version ==
outputs:
success-3-28: ${{ steps.success.outputs.success-3-28 }}
success-3-28-gdal3-6: ${{ steps.success.outputs.success-3-28-gdal3.6 }}
success-3-28-gdal3-7: ${{ steps.success.outputs.success-3-28-gdal3-7 }}
success-3-34: ${{ steps.success.outputs.success-3-34 }}
success-3-34-gdal3-7: ${{ steps.success.outputs.success-3-34-gdal3-7 }}
success-3-34-gdal3-8: ${{ steps.success.outputs.success-3-34-gdal3-8 }}
success-ltr: ${{ steps.success.outputs.success-ltr }}

steps:
- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -94,3 +105,26 @@ jobs:
if: >
github.ref == format('refs/heads/{0}', env.MAIN_BRANCH)
&& env.HAS_SECRETS == 'HAS_SECRETS'
# Mark as success
- id: success
run: |
version=${{ matrix.version }}
echo "success_${version//\./-}=true" >> $GITHUB_OUTPUT
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-28 }}" == "true" ]]'
- run: '[[ "${{ needs.main.outputs.success-3-28-gdal3-6 }}" == "true" ]]'
- run: '[[ "${{ needs.main.outputs.success-3-28-gdal3-7 }}" == "true" ]]'
- run: '[[ "${{ needs.main.outputs.success-3-34 }}" == "true" ]]'
- run: '[[ "${{ needs.main.outputs.success-3-34-gdal3-7 }}" == "true" ]]'
- run: '[[ "${{ needs.main.outputs.success-3-34-gdal3-8 }}" == "true" ]]'
- run: '[[ "${{ needs.main.outputs.success-ltr }}" == "true" ]]'

0 comments on commit f6f89d1

Please sign in to comment.