From b5289d507bb4093246239c79fc73984ab5db444d Mon Sep 17 00:00:00 2001 From: Mathias Elle Date: Fri, 23 Feb 2024 22:14:54 +0100 Subject: [PATCH] Initial commit --- .github/workflows/trunk-check.yaml | 25 +++++++++++++++++++++++++ README.md | 9 +++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/trunk-check.yaml create mode 100644 README.md 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