Skip to content

Commit

Permalink
dev-hato/actions-format-json-ymlアップデート・CI update-readmeへのprettier追加 (#…
Browse files Browse the repository at this point in the history
…1071)

* Update dev-hato/actions-format-json-yml action to v0.0.69

* Add prettier

* README修正 (#1072)

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 9, 2024
1 parent 2ed878d commit 78dfc80
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
pull_request:
branches: ["main"]
schedule:
- cron: '15 7 * * 2'
- cron: "15 7 * * 2"
permissions:
actions: read
contents: read
Expand All @@ -34,7 +34,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: ['javascript-typescript']
language: ["javascript-typescript"]
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/format-json-yml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
token: ${{steps.generate_token.outputs.token}}
- uses: dev-hato/[email protected].66
- uses: dev-hato/[email protected].69
with:
github-token: ${{steps.generate_token.outputs.token}}
concurrency:
Expand Down
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:
pull_request:
paths:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
env:
INPUTS: ${{steps.get_inputs_markdown.outputs.result}}
run: bash "${GITHUB_WORKSPACE}/scripts/update_readme/update_readme/update_readme.sh"
- if: github.event_name != 'pull_request' || github.event.action != 'closed'
run: npx prettier --write .
- uses: dev-hato/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
branches:
- main
schedule:
- cron: '0 21 * * *'
- cron: "0 21 * * *"
workflow_dispatch:

jobs:
Expand All @@ -25,9 +25,9 @@ jobs:
## 引数
| 引数名 | 説明 | 必須 |
|:---:|:---:|:---:|
| github-token | GitHubのトークン。 | O |
| 引数名 | 説明 | 必須 |
| :----------: | :----------------: | :--: |
| github-token | GitHubのトークン。 | O |
## 開発
Expand Down
2 changes: 1 addition & 1 deletion README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
branches:
- main
schedule:
- cron: '0 21 * * *'
- cron: "0 21 * * *"
workflow_dispatch:

jobs:
Expand Down
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: 'github-actions-cache-cleaner'
author: 'dev-hato Development Team'
description: 'GitHub Actionsのキャッシュが7GB未満になるまで掃除するGitHub Actionsです。'
name: "github-actions-cache-cleaner"
author: "dev-hato Development Team"
description: "GitHub Actionsのキャッシュが7GB未満になるまで掃除するGitHub Actionsです。"
inputs:
github-token: # id of input
description: 'GitHubのトークン。'
description: "GitHubのトークン。"
required: true
runs:
using: "composite"
Expand Down
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 @@ -3,6 +3,7 @@
"@proofdict/textlint-rule-proofdict": "3.1.2",
"@textlint-ja/textlint-rule-no-insert-dropping-sa": "2.0.1",
"js-yaml": "4.1.0",
"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 78dfc80

Please sign in to comment.