Skip to content

Commit

Permalink
Update pr-annotations.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
gewenyu99 authored Jul 22, 2024
1 parent 85745a9 commit 7aa49a9
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/pr-annotations.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
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:
name: Trunk Check Annotate
Lint:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -18,3 +26,6 @@ jobs:
uses: trunk-io/trunk-action@v1
with:
post-annotations: true # only for fork PRs



0 comments on commit 7aa49a9

Please sign in to comment.