Merge pull request #2901 from is-a-dev-bot/patch-5

Fix Bot
This commit is contained in:
Akshay Nair
2022-07-24 11:48:17 +05:30
committed by GitHub
+14 -12
View File
@@ -10,15 +10,17 @@ jobs:
name: instructions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Comment
if: github.event.action == 'closed' && github.event.pull_request.merged == true
uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const { hasLabel } = require(`${process.env.GITHUB_WORKSPACE}/scripts/action-utils.js`);
const { instructions } = require(`${process.env.GITHUB_WORKSPACE}/scripts/reply.js`);
if (hasLabel(context, 'domain'))
console.log('Domain');
await instructions(context, github);
- run: curl https://notify-api.is-a.dev/pr/merged/${{ github.event.pull_request.number }}
if: github.event.action == 'closed' && github.event.pull_request.merged == true
# - uses: actions/checkout@v2
# - name: Comment
# if: github.event.action == 'closed' && github.event.pull_request.merged == true
# uses: actions/github-script@v3
# with:
# github-token: ${{secrets.GITHUB_TOKEN}}
# script: |
# const { hasLabel } = require(`${process.env.GITHUB_WORKSPACE}/scripts/action-utils.js`);
# const { instructions } = require(`${process.env.GITHUB_WORKSPACE}/scripts/reply.js`);
# if (hasLabel(context, 'domain'))
# console.log('Domain');
# await instructions(context, github);