File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
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"
You can’t perform that action at this time.
0 commit comments