-
Notifications
You must be signed in to change notification settings - Fork 8.6k
33 lines (30 loc) · 1.02 KB
/
trigger-sync-ci.yml
File metadata and controls
33 lines (30 loc) · 1.02 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: Sync CI on comment
on:
issue_comment:
types:
- created
jobs:
issue_commented:
name: sync ci checks on comment
if: |
github.event.issue.pull_request
&& contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)
&& startsWith(github.event.comment.body, '/sync-ci')
runs-on: ubuntu-latest
steps:
- name: Checkout kibana-operations
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: 'elastic/kibana-operations'
ref: main
path: ./kibana-operations
token: ${{secrets.KIBANAMACHINE_TOKEN}}
persist-credentials: false
- name: Sync CI Status Checks
working-directory: ./kibana-operations/triage
env:
GITHUB_TOKEN: ${{secrets.KIBANAMACHINE_TOKEN}}
BUILDKITE_TOKEN: ${{secrets.OPS_BUILDKITE_TOKEN}}
run: |
npm ci --omit=dev
node verify-ci-check ${{github.event.issue.number}}