Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.8] Add a global success marker #11639

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/qgis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# The versions should be set everywhere we have a == QGIS version == comment
version:
# Last LTR
- '3.28'
Expand All @@ -59,6 +60,19 @@ jobs:
- latest
- lr-debug

# == 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 }}
success-lr: ${{ steps.success.outputs.success-lr }}
success-lr-debug: ${{ steps.success.outputs.success-lr-debug }}
success-latest: ${{ steps.success.outputs.latest }}

steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -120,3 +134,28 @@ jobs:
if: >
env.HAS_SECRETS == 'HAS_SECRETS'
&& steps.version.outputs.versions != ''

# 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" ]]'
- run: '[[ "${{ needs.main.outputs.success-lr }}" == "true" ]]'
- run: '[[ "${{ needs.main.outputs.success-lr-debug }}" == "true" ]]'
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ repos:
hooks:
- id: git-check
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.21.0
rev: 0.30.0
hooks:
- id: check-github-workflows
- id: check-renovate
Expand Down
Loading