Skip to content

chore(deps): update dev-hato/actions-update-gitleaks action to v0.0.99 #1216

chore(deps): update dev-hato/actions-update-gitleaks action to v0.0.99

chore(deps): update dev-hato/actions-update-gitleaks action to v0.0.99 #1216

Workflow file for this run

---
name: format
on:
pull_request:
types:
- opened
- synchronize
- reopened
- closed
merge_group:
permissions:
contents: write
pull-requests: write
jobs:
format:
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 }}
persist-credentials: false
- if: github.event_name != 'pull_request' || github.event.action != 'closed'
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: stable
- if: github.event_name != 'pull_request' || github.event.action != 'closed'
run: bash "${GITHUB_WORKSPACE}/scripts/format/format/format.sh"
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94 # v2.2.0
with:
app-id: ${{ secrets.PROJECT_AUTOMATION_APP_ID }}
private-key: ${{ secrets.PROJECT_AUTOMATION_PRIVATE_KEY }}
- uses: dev-hato/actions-diff-pr-management@9de3de40217217a73ac95f3751d7bfe1c9f23ead # v2.2.3
with:
github-token: ${{steps.generate_token.outputs.token}}
branch-name-prefix: format
pr-title-prefix: Format修正
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true