🛡️ Merge ebuild (stable) #744
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: Copyright 2025 Florian Albrechtskirchinger <[email protected]> | |
| # | |
| # SPDX-License-Identifier: MIT | |
| name: 🛡️ Merge ebuild (stable) | |
| on: | |
| workflow_run: | |
| workflows: ['🧪 Merge ebuilds'] | |
| types: [completed] | |
| jobs: | |
| check-status: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Collect test results | |
| id: test-results | |
| run: python scripts/test_ebuilds.py -v --collect-test-results --from-event --read-variables | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GH_TOKEN: ${{ secrets.INTEGRATION_PAT }} | |
| - name: Report status | |
| run: | | |
| if [[ -z "${{ fromJSON(steps.test-results.outputs.test_results).stable.conclusion }}" ]]; then | |
| echo "⚠️ No 'stable' test result available." | |
| exit 1 | |
| elif [[ "${{ fromJSON(steps.test-results.outputs.test_results).stable.cached }}" == "true" ]]; then | |
| echo "💡 Test result is cached." | |
| fi | |
| if [[ "${{ fromJSON(steps.test-results.outputs.test_results).stable.conclusion }}" == "success" ]]; then | |
| echo "✅ 'Stable' ebuild merge succeeded." | |
| exit 0 | |
| else | |
| echo "❌ 'Stable' ebuild merge failed." | |
| exit 1 | |
| fi |