diff --git a/.github/workflows/pr-annotations.yaml b/.github/workflows/pr-annotations.yaml index 0c10abd..6c51718 100644 --- a/.github/workflows/pr-annotations.yaml +++ b/.github/workflows/pr-annotations.yaml @@ -1,15 +1,26 @@ -name: Annotate PR with trunk issues +name: CI on: - workflow_run: - workflows: ["Pull Request"] - types: [completed] + push: + branches: + - main + - develop + pull_request: + +# cancel in-progress runs on new commits to same PR (gitub.event.number) +concurrency: + group: ${{ github.workflow }}-${{ github.event.number || github.sha }} + cancel-in-progress: true + +permissions: + contents: read # to fetch code (actions/checkout) jobs: - trunk_check: + Lint: name: Trunk Check Annotate runs-on: ubuntu-latest - + permissions: + checks: write steps: - name: Checkout uses: actions/checkout@v3 @@ -17,4 +28,5 @@ jobs: - name: Trunk Check uses: trunk-io/trunk-action@v1 with: - post-annotations: true # only for fork PRs \ No newline at end of file + post-annotations: true # only for fork PRs + diff --git a/.gitignore b/.gitignore index 6240da8..342a315 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,5 @@ pnpm-debug.log* # macOS-specific files .DS_Store + +package-lock.json \ No newline at end of file