-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.13 KB
/
lint.yml
File metadata and controls
42 lines (38 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
on:
push:
branches:
- "**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v2
- name: Run linters
run: make lint
- name: Make sure there are no diffs
run:
git diff && exit $(git status --porcelain=v1
2>/dev/null | wc -l)
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
if: ${{ failure() }}
with:
token: ${{ secrets.WORKFLOW_TOKEN }}
commit-message:
Automated - Lint ${{ github.ref_name }}
title: Automated - Lint ${{ github.ref_name }}
branch: lint-${{ github.run_number }}
body:
This pull request applies NPM's `prettier`
formatting changes and will generate the sitemap. Commit ${{
github.sha }}.
labels: auto-generated
reviewers: ${{ github.actor }}
- name: Store pull request number
if: ${{ failure() }}
run:
echo "PR_NUMBER=${{
steps.cpr.outputs.pull-request-number }}" >>
$GITHUB_ENV