WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Fix/update validation issues status label (#4478) #8461

Fix/update validation issues status label (#4478)

Fix/update validation issues status label (#4478) #8461

Workflow file for this run

name: autofix.ci
on:
pull_request:
push:
branches: ["main"]
permissions:
contents: read
jobs:
detect_changes:
if: github.event.pull_request.draft == false || github.event_name != 'pull_request'
uses: ./.github/workflows/job_detect_changes.yaml
autofix:
if: github.event.pull_request.draft == false || github.event_name != 'pull_request'
runs-on: depot-ubuntu-24.04-4
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
with:
run_install: false
- name: Setup Node with pnpm cache
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: 22
cache: "pnpm"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Go
if: needs.detect_changes.outputs.go == 'true'
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
with:
go-version-file: ./go/go.mod
cache-dependency-path: ./go/go.sum
- name: Cache golangci-lint
if: needs.detect_changes.outputs.go == 'true'
uses: actions/cache@v4
with:
path: ~/go/bin/golangci-lint
key: ${{ runner.os }}-golangci-lint-v2.4.0
- name: Install golangci-lint
if: needs.detect_changes.outputs.go == 'true'
run: |
if [ ! -f ~/go/bin/golangci-lint ]; then
go install github.com/golangci/golangci-lint/v2/cmd/[email protected]
fi
shell: bash
- name: Format Go code
if: needs.detect_changes.outputs.go == 'true'
run: make fmt
working-directory: ./go
- name: Install dependencies
run: pnpm install --recursive
env:
CI: 1
- run: pnpm biome format . --write && pnpm biome check . --write
env:
CI: 1
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 # v1.3.2