diff --git a/.github/workflows/trunk-check.yaml b/.github/workflows/trunk-check.yaml new file mode 100644 index 0000000..471d181 --- /dev/null +++ b/.github/workflows/trunk-check.yaml @@ -0,0 +1,25 @@ +name: Trunk Check +run-name: ${{ fromJSON(inputs.payload).checkWorkflowRunName }} +on: + workflow_dispatch: + inputs: + payload: + description: For invocation by Trunk Check + required: false + +permissions: + contents: read + +jobs: + check: + name: ${{ fromJSON(inputs.payload).checkJobName }} + runs-on: ${{ fromJSON(inputs.payload).checkJobRunsOn }} + concurrency: + group: ${{ fromJSON(inputs.payload).concurrencyGroup }} + cancel-in-progress: true + + steps: + - name: Trunk Check + uses: trunk-io/trunk-action@v1 + with: + check-mode: payload diff --git a/README.md b/README.md new file mode 100644 index 0000000..6f308bf --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# What is `.trunk`? + +Trunk Check uses `.trunk` to find issues in your repositories and pull requests. Learn more +[here][check-github-integration]. + +Your `.trunk` repository should always be created by generating it from the +[`trunk-io/.trunk-template`](https://github.com/trunk-io/.trunk-template) repository. + +[check-github-integration]: https://docs.trunk.io/docs/check-github-integration