Update dev-hato/actions-update-gitleaks action to v0.0.84 #3869
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
if: github.event_name != 'pull_request' || github.event.action != 'closed' | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.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@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | |
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 {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@cc201e3df74a342983025c4e97b7216b4e77f9f1 # v2.0.0 | |
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 |