Skip to content

Commit

Permalink
super-linterアップデート・prettierを使う (#1398)
Browse files Browse the repository at this point in the history
* Update super-linter/super-linter action to v7

* Add prettier

* formatが間違ってたので直してあげたよ! (#1399)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* 処理修正

* setupを先頭に移動

* 順序統一

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: dev-hato-app[bot] <111467236+dev-hato-app[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Goryudyuma(Kei.Matsumoto) <[email protected]>
  • Loading branch information
5 people authored Sep 8, 2024
1 parent c35aa5f commit 080d94f
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/github-actions-cache-cleaner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
schedule:
- cron: '0 21 * * *' # 06:00 JST
- cron: "0 21 * * *" # 06:00 JST
workflow_dispatch:
permissions: read-all
jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
# Run Linter against code base #
################################
- name: Lint Code Base
uses: super-linter/super-linter/slim@v6.9.0
uses: super-linter/super-linter/slim@v7.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BRANCH: main
Expand Down
19 changes: 15 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
name: 'format-json-yml'
author: 'dev-hato Development Team'
description: 'JSONやYAMLのフォーマットを整える'
name: "format-json-yml"
author: "dev-hato Development Team"
description: "JSONやYAMLのフォーマットを整える"
inputs:
github-token: # id of input
description: 'GITHUB_TOKEN'
description: "GITHUB_TOKEN"
required: true
runs:
using: "composite"
steps:
- uses: actions/[email protected]
if: github.event_name != 'pull_request' || github.event.action != 'closed'
with:
cache: npm
- 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: npm ci
- shell: bash
if: github.event_name != 'pull_request' || github.event.action != 'closed'
run: npx prettier --write .
- uses: dev-hato/[email protected]
with:
github-token: ${{inputs.github-token}}
branch-name-prefix: fix-format-json-yml
pr-title-prefix: formatが間違ってたので直してあげたよ!
pr-description-prefix: formatが間違ってたので直してあげたよ!
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"devDependencies": {
"@proofdict/textlint-rule-proofdict": "3.1.2",
"@textlint-ja/textlint-rule-no-insert-dropping-sa": "2.0.1",
"prettier": "^3.3.3",
"textlint": "14.2.0",
"textlint-filter-rule-comments": "1.2.2",
"textlint-rule-abbr-within-parentheses": "1.0.2",
Expand Down
4 changes: 1 addition & 3 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>dev-hato/renovate-config"
]
"extends": ["github>dev-hato/renovate-config"]
}

0 comments on commit 080d94f

Please sign in to comment.