Skip to content

Add links to votable arbitrator election ballot(s) #40

Add links to votable arbitrator election ballot(s)

Add links to votable arbitrator election ballot(s) #40

Workflow file for this run

name: 'CI'
on: [pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: lint
uses: actions/setup-node@v1
with:
node-version: '16.17.0'
- run: yarn install
- run: yarn lint
- name: Passed Linter ✅
if: ${{ success() }}
run: |
curl --request POST \
--url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
--header 'content-type: application/json' \
--data '{
"context": "lint",
"state": "success",
"description": "linter passed ✅",
"target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}'
- name: Failed Linter 🚨
if: ${{ failure() }}
run: |
curl --request POST \
--url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
--header 'content-type: application/json' \
--data '{
"context": "lint",
"state": "failure",
"description": "linter failed 🚨",
"target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}'