-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
22 lines (22 loc) · 1.02 KB
/
action.yml
File metadata and controls
22 lines (22 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: "format-json-yml"
author: "dev-hato Development Team"
description: "JSONやYAMLのフォーマットを整える"
inputs:
github-token: # id of input
description: "GITHUB_TOKEN"
required: true
runs:
using: "composite"
steps:
- shell: bash
if: github.event_name != 'pull_request' || github.event.action != 'closed'
run: bash "${{ github.action_path }}/scripts/action/format.sh"
- shell: bash
if: github.event_name != 'pull_request' || github.event.action != 'closed'
run: find . -type f \( -name '*.json' -o -name '*.geojson' -o -name '*.yaml' -o -name '*.yml' \) -not -path './node_modules/*' -exec npx prettier --write {} \;
- uses: dev-hato/actions-diff-pr-management@5cd3792bc98beed11cda90898bc81af6bfa199af # v2.2.5
with:
github-token: ${{inputs.github-token}}
branch-name-prefix: fix-format-json-yml
pr-title-prefix: formatが間違ってたので直してあげたよ!
pr-description-prefix: formatが間違ってたので直してあげたよ!