forked from tensorflow/tflite-micro
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 989 Bytes
/
apply_cirun.yml
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
# Apply ci:run on the following conditions:
# 1. ci:ready_to_merge is added to a PR (e.g. on review approval). This makes
# it so that a review approval is sufficient to get all the CI machinery
# going and have the PR be merged (if all the tests pass).
#
# 2. PR is updated and ci:ready_to_merge is already a label on the PR. This
# allows mergify to update the PR and keep the merging process moving
# along.
on:
pull_request_target:
types: [labeled, synchronize]
jobs:
apply-label:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'ci:ready_to_merge')
steps:
- uses: actions/github-script@v5
with:
github-token: ${{ secrets.TFLM_BOT_REPO_TOKEN }}
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['ci:run']
})