Skip to content

[ci][microcheck/7] add go label on auto-merge #1

[ci][microcheck/7] add go label on auto-merge

[ci][microcheck/7] add go label on auto-merge #1

name: Auto merge enabled
on:
pull_request_target:
types:
- auto_merge_enabled
jobs:
add-label:
runs-on: ubuntu-latest
steps:

Check failure on line 9 in .github/workflows/on_auto_merge.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/on_auto_merge.yaml

Invalid workflow file

You have an error in your yaml syntax on line 9
- name: Add go label
uses: actions/github-script@v5
with:
script: |
github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['go']
})