mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-03 07:13:09 +00:00
1 file changed
+14
-12
+14
-12
@@ -10,15 +10,17 @@ jobs:
|
|||||||
name: instructions
|
name: instructions
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- run: curl https://notify-api.is-a.dev/pr/merged/${{ github.event.pull_request.number }}
|
||||||
- name: Comment
|
if: github.event.action == 'closed' && github.event.pull_request.merged == true
|
||||||
if: github.event.action == 'closed' && github.event.pull_request.merged == true
|
# - uses: actions/checkout@v2
|
||||||
uses: actions/github-script@v3
|
# - name: Comment
|
||||||
with:
|
# if: github.event.action == 'closed' && github.event.pull_request.merged == true
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
# uses: actions/github-script@v3
|
||||||
script: |
|
# with:
|
||||||
const { hasLabel } = require(`${process.env.GITHUB_WORKSPACE}/scripts/action-utils.js`);
|
# github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
const { instructions } = require(`${process.env.GITHUB_WORKSPACE}/scripts/reply.js`);
|
# script: |
|
||||||
if (hasLabel(context, 'domain'))
|
# const { hasLabel } = require(`${process.env.GITHUB_WORKSPACE}/scripts/action-utils.js`);
|
||||||
console.log('Domain');
|
# const { instructions } = require(`${process.env.GITHUB_WORKSPACE}/scripts/reply.js`);
|
||||||
await instructions(context, github);
|
# if (hasLabel(context, 'domain'))
|
||||||
|
# console.log('Domain');
|
||||||
|
# await instructions(context, github);
|
||||||
Reference in new issue
Block a user