[pre-commit.ci] pre-commit autoupdate #1944
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: ci | |
| # Cloud secrets aren't shared to fork PRs, so cloud is skipped | |
| # (not failed) there; check uses alls-green's allowed-skips so a | |
| # fork PR still goes green on server alone. | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| inputs: | |
| ref: | |
| type: string | |
| description: 'Ref (SHA/branch) to run the workflow on' | |
| required: true | |
| default: 'main' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| server: | |
| uses: ./.github/workflows/jira_server_ci.yml | |
| with: | |
| ref: ${{ github.event.inputs.ref || github.sha }} | |
| cloud: | |
| needs: server | |
| if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} | |
| uses: ./.github/workflows/jira_cloud_ci.yml | |
| secrets: | |
| CLOUD_ADMIN: ${{ secrets.CI_JIRA_CLOUD_ADMIN }} | |
| CLOUD_ADMIN_TOKEN: ${{ secrets.CI_JIRA_CLOUD_ADMIN_TOKEN }} | |
| CLOUD_USER: ${{ secrets.CI_JIRA_CLOUD_USER }} | |
| CLOUD_USER_TOKEN: ${{ secrets.CI_JIRA_CLOUD_USER_TOKEN }} | |
| with: | |
| ref: ${{ github.event.inputs.ref || github.sha }} | |
| # The only required status in repo config; flip-jobs-safely. | |
| check: | |
| if: always() | |
| needs: | |
| - server | |
| - cloud | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: re-actors/alls-green@release/v1 | |
| with: | |
| jobs: ${{ toJSON(needs) }} | |
| allowed-skips: cloud |