Skip to content

Update dependency prettier to v3.7.2 #4861

Update dependency prettier to v3.7.2

Update dependency prettier to v3.7.2 #4861

Workflow file for this run

---
name: update-readme
on:
pull_request:
types:
- opened
- synchronize
- reopened
- closed
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
if: github.event_name != 'pull_request' || github.event.action != 'closed'
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha || github.sha }}
persist-credentials: false
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
if: github.event_name != 'pull_request' || github.event.action != 'closed'
with:
cache: npm
node-version-file: .node-version
- if: github.event_name != 'pull_request' || github.event.action != 'closed'
run: npm ci
- name: Get inputs markdown
id: get_inputs_markdown
if: github.event_name != 'pull_request' || github.event.action != 'closed'
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
HEAD_REF: ${{github.event.pull_request.head.ref || github.head_ref}}
with:
github-token: ${{secrets.GITHUB_TOKEN}}
result-encoding: string
script: |
const {tsImport} = require('tsx/esm/api')
const {default: {script}} = await tsImport(
'./scripts/update_readme/update_readme/get_inputs_markdown.ts',
process.env.GITHUB_WORKSPACE + '/'
)
return script()
- if: github.event_name != 'pull_request' || github.event.action != 'closed'
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/actions-diff-pr-management@9de3de40217217a73ac95f3751d7bfe1c9f23ead # v2.2.3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
branch-name-prefix: fix-readme
pr-title-prefix: README修正
pr-description-prefix: READMEを修正しました。
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true