diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..44fefa7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +# 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 + permissions: + contents: write + issues: write + actions: write