State management: persistence, resets, and URL restore #206
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
| name: crucible-ci | |
| on: | |
| pull_request: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.ref }}/crucible-ci | |
| cancel-in-progress: true | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| only-docs: ${{ steps.filter.outputs.only_changed }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: tj-actions/changed-files@v47 | |
| id: filter | |
| with: | |
| files: | | |
| LICENSE | |
| *.md | |
| **/*.md | |
| .github/rulesets/** | |
| .github/workflows/run-crucible-tracking.yaml | |
| .github/workflows/crucible-ci.yaml | |
| .github/workflows/fork-check.yaml | |
| .github/workflows/controller-build.yaml | |
| .github/workflows/cdm-ci.yaml | |
| docs/** | |
| - name: Display changes | |
| run: echo '${{ toJSON(steps.filter.outputs) }}' | jq . | |
| call-real-core-release-crucible-ci: | |
| needs: changes | |
| if: ${{ github.event.pull_request.head.repo.fork != true && (github.event_name == 'workflow_dispatch' || needs.changes.outputs.only-docs != 'true') }} | |
| uses: perftool-incubator/crucible-ci/.github/workflows/core-release-crucible-ci.yaml@main | |
| with: | |
| ci_target: "CommonDataModel" | |
| ci_target_branch: "${{ github.ref }}" | |
| github_workspace: "$GITHUB_WORKSPACE" | |
| userenv_filter: "minimal" | |
| secrets: | |
| ci_registry_auth: ${{ secrets.CRUCIBLE_CI_ENGINES_REGISTRY_AUTH }} | |
| quay_oauth_token: ${{ secrets.CRUCIBLE_QUAYIO_OAUTH_TOKEN }} | |
| call-faux-core-release-crucible-ci: | |
| needs: changes | |
| if: ${{ github.event.pull_request.head.repo.fork != true && github.event_name != 'workflow_dispatch' && needs.changes.outputs.only-docs == 'true' }} | |
| uses: perftool-incubator/crucible-ci/.github/workflows/faux-core-release-crucible-ci.yaml@main | |
| crucible-ci-complete: | |
| runs-on: ubuntu-latest | |
| needs: [ call-real-core-release-crucible-ci, call-faux-core-release-crucible-ci ] | |
| if: always() | |
| steps: | |
| - name: Check Results | |
| if: >- | |
| contains(needs.*.result, 'failure') || | |
| contains(needs.*.result, 'cancelled') | |
| run: exit 1 | |
| - run: 'echo "crucible-ci complete"' |