Skip to content

Commit dd572a3

Browse files
committed
add new instructions
1 parent 664a560 commit dd572a3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/codeowners-review-analysis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,21 @@ on:
55

66
jobs:
77
analyze-reviews:
8-
name: "Enforce"
8+
name: "analyze"
99
runs-on: ubuntu-latest
1010
permissions:
1111
actions: read
1212
contents: read
1313
pull-requests: write
1414
steps:
15+
- name: Comment Label
16+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'analyze-reviews') }}
17+
run: |
18+
echo "Label 'analyze-reviews' not found on PR. Skipping analysis."
19+
echo "Add label 'analyze-reviews', and push a new commit enable analysis."
20+
1521
- name: CODEOWNERS Review Analysis
16-
if: contains(github.event.pull_request.labels.*.name, 'analyze-reviews')
22+
if: ${{ contains(github.event.pull_request.labels.*.name, 'analyze-reviews') }}
1723
uses: smartcontractkit/.github/actions/codeowners-review-analysis@feat/codeowners-analysis
1824
env:
1925
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)