From 43e4bfc408701f1a53823918d81b7fbcb297cbb8 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Fri, 21 Jan 2022 20:47:21 -0500 Subject: [PATCH] ci: fix `branches.yml` [skip ci] --- .github/workflows/branches.yml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/branches.yml b/.github/workflows/branches.yml index 8a1a00f7..f3a5d761 100644 --- a/.github/workflows/branches.yml +++ b/.github/workflows/branches.yml @@ -9,19 +9,21 @@ on: jobs: notice: - - name: - uses: actions/github-script@v5 - with: - script: | - const {issue:{number:issue_number}, repo:{owner, repo}} = context - github.issues.createComment({issue_number, owner, repo, body:[ - "Hello there 👋!", - "", - "It seems you have opened a pull request on either `main`, `latest` or `examples`.", - "These branches are fully-automated and do not accept human contributions.", - "", - "* To contribute to *metrics* code, open a pull request to `master` branch", - "* To contribute to *metrics* presets, open a pull request to `presets` branch", - "", - "Thanks for your cooperation 🦾!" - ].join("\n")}) + name: Notice for automated branches + steps: + - name: Comment on pull request + uses: actions/github-script@v5 + with: + script: | + const {issue:{number:issue_number}, repo:{owner, repo}} = context + github.issues.createComment({issue_number, owner, repo, body:[ + "Hello there 👋!", + "", + "It seems you have opened a pull request on either `main`, `latest` or `examples`.", + "These branches are fully-automated and do not accept human contributions.", + "", + "* To contribute to *metrics* code, open a pull request to `master` branch", + "* To contribute to *metrics* presets, open a pull request to `presets` branch", + "", + "Thanks for your cooperation 🦾!" + ].join("\n")})