Skip to content

Commit fb1acb1

Browse files
committed
ci(update-prettier): initial version
1 parent 5e32148 commit fb1acb1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/update-prettier.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Update Prettier
2+
on:
3+
push:
4+
branches:
5+
- "dependabot/npm_and_yarn/prettier-*"
6+
workflow_dispatch: {}
7+
jobs:
8+
update_prettier:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
version: 12
15+
- uses: actions/cache@v1
16+
with:
17+
path: ~/.npm
18+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
19+
restore-keys: |
20+
${{ runner.os }}-node-
21+
- run: npm ci
22+
- run: npm run lint:fix
23+
- uses: gr2m/create-or-update-pull-request-action@v1.x
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
26+
with:
27+
title: "Prettier updated"
28+
body: "An update to prettier required updates to your code."
29+
branch: ${{ github.ref }}
30+
commit-message: "style: prettier"

0 commit comments

Comments
 (0)