Files
cocos4/.github/workflows/automation_labels.yml
T
fish9167 82cd89d260 Update native-compile-platforms.yml (#10362)
* Update native-compile-platforms.yml

更新 windows 镜像版本
限制任务触发条件(native 目录下有文件修改才会触发该任务)

* Update automation_labels.yml

组织名称修改

* change Visual Studio version

修改 Visual Studio 版本(2017-->2019)

* Update native-simulator.yml

更新 windows 镜像版本
限制任务触发条件(native 目录下有文件修改才会触发该任务)
2022-03-16 16:00:23 +08:00

37 lines
1.2 KiB
YAML

name: automation-labels
on:
pull_request_target:
types: [opened]
jobs:
automate-labels:
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Check organization
id: get_check_code
run: |
http_code=`curl -s --head -I -H "Authorization: token ${{ secrets.LABEl_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/cocos/members/${{ github.event.pull_request.user.login }} | awk '/HTTP/{print $2}'`
echo "::set-output name=http_code::${http_code}"
- name: Echo username organization
run: |
echo ${{ github.event.pull_request.user.login }}
echo ${{ steps.get_check_code.outputs.http_code }}
- name: Add contribution label
if: |
steps.get_check_code.outputs.http_code == 404
uses: OperationsYU/labeler@master
with:
add-labels: "contribution"
- name: assignment
if: |
steps.get_check_code.outputs.http_code == 404
uses: OperationsYU/auto-assignment@v1
with:
token: ${{ secrets.LABEl_TOKEN }}
users: '["holycanvas"]'