-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 1.03 KB
/
leaks.yml
File metadata and controls
34 lines (28 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Leaks Checker
on:
issue_comment:
types: [created]
pull_request:
types: [opened]
permissions:
contents: read
pull-requests: write
issues: write
jobs:
leaks-checker:
if: |
github.event.pull_request != null || (github.event_name == 'issue_comment' && github.event.comment.body == '/ci leaks' && github.event.issue.pull_request != null)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref || (github.event.issue.pull_request != null && format('refs/pull/{0}/head', github.event.issue.number)) || github.ref }}
- name: Run leaks checker script
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
REPO: ${{ github.repository }}
IS_PR: ${{ github.event_name == 'pull_request' || github.event.issue.pull_request != null }}
run: |
chmod +x ci/leaks/main.sh
bash ci/leaks/main.sh