未验证 提交 070cb00e 编写于 作者: J jwithers 提交者: GitHub

remove ci runner labels from PRs (#150)

* remove ci runner labels from PRs

* moving label deletion to own workflow file

* changing target and removing conditional

* adding comment on error catching
Co-authored-by: NAdvait Jain <advaitjain@users.noreply.github.com>
上级 217ad9fc
......@@ -103,3 +103,4 @@ jobs:
run: |
tensorflow/lite/micro/tools/ci_build/test_makefile.sh
tensorflow/lite/micro/tools/ci_build/test_x86.sh
\ No newline at end of file
name: Remove Labels
on:
pull_request_target:
types: [labeled]
jobs:
label_cleanup:
runs-on: ubuntu-latest
name: remove CI runner labels
steps:
- name: remove tags
uses: actions/github-script@a3e7071a34d7e1f219a8a4de9a5e0a34d1ee1293
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: 'ci:run'
})
github.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: 'ci:test'
})
# Prevent erroring out if label doesn't exist
continue-on-error: true
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册