Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-09-16 10:24:12 +03:00
parent 5893bdd5db
commit 2f98dbc059

View File

@ -24,10 +24,12 @@ jobs:
|| (github.event.workflow_run.event == 'push' && github.event.workflow_run.pull_requests[0].base.ref == github.event.repository.default_branch )) || (github.event.workflow_run.event == 'push' && github.event.workflow_run.pull_requests[0].base.ref == github.event.repository.default_branch ))
steps: steps:
- name: Approve Changes and Merge changes if label 'dependencies' is set - name: Approve Changes and Merge changes if label 'dependencies' is set
uses: actions/github-script@v4.0.2 uses: actions/github-script@v4
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |
console.log(context.payload.workflow_run);
var labelNames = await github.paginate( var labelNames = await github.paginate(
github.issues.listLabelsOnIssue, github.issues.listLabelsOnIssue,
{ {