Repository navigation
ci: adopt Mainloop CI standard v1 #1
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
| # Mainloop CI standard v1 (Mainloop-AI/.github STANDARD.md). Fill the inputs for this repo; do not copy the reusable workflow. | ||
| name: ci | ||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: [develop, staging, main, master, production] | ||
| workflow_dispatch: | ||
| inputs: | ||
| base: {description: "the PR base this run stands for (back-merge PRs)", type: string, required: false, default: ""} | ||
| permissions: | ||
| contents: read | ||
| concurrency: | ||
| group: ci-${{ github.workflow }}-${{ github.ref }}-${{ inputs.base }} | ||
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
| jobs: | ||
| ci: | ||
| uses: Mainloop-AI/.github/.github/workflows/ci.yml@v1 | ||
| with: | ||
| base: ${{ inputs.base }} | ||
| backmerge: | ||
| if: github.event_name == 'push' && contains(fromJSON('["main","master","production"]'), github.ref_name) | ||
| uses: Mainloop-AI/.github/.github/workflows/backmerge.yml@v1 | ||
|
Check failure on line 22 in .github/workflows/ci.yml
|
||
| permissions: | ||
| contents: write | ||
| issues: write | ||
| actions: write | ||