Skip to content

Update README.md

Update README.md #21

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
# Add automerge label if tests pass
- name: Add automerge label
if: success()
uses: actions/github-script@v6
with:
github-token: ${{ secrets.TOKEN }}
script: |
const { owner, repo } = context.repo;
const pull_number = context.payload.pull_request.number;
await github.rest.issues.addLabels({
owner: owner,
repo: repo,
issue_number: pull_number,
labels: ['automerge']
});