mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
chore(biome-autofix): delete .github/workflows/biome-autofix.yml
This commit is contained in:
parent
e94800dfec
commit
99d012220c
1 changed files with 0 additions and 64 deletions
64
.github/workflows/biome-autofix.yml
vendored
64
.github/workflows/biome-autofix.yml
vendored
|
@ -1,64 +0,0 @@
|
||||||
name: Biome Auto-fix on Main
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths-ignore:
|
|
||||||
- "**.md"
|
|
||||||
- ".gitignore"
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
biome-autofix:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Reset working directory to match origin/main
|
|
||||||
run: |
|
|
||||||
git fetch origin main
|
|
||||||
git reset --hard origin/main
|
|
||||||
git clean -fdx
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: lts/*
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm ci
|
|
||||||
|
|
||||||
- name: Run Biome check
|
|
||||||
id: biome_check
|
|
||||||
run: |
|
|
||||||
npx biome check .
|
|
||||||
continue-on-error: true
|
|
||||||
|
|
||||||
- name: Run Biome auto-fix if needed
|
|
||||||
if: ${{ steps.biome_check.outcome == 'failure' }}
|
|
||||||
run: npx biome check --write .
|
|
||||||
|
|
||||||
- name: Create or update PR with fixes
|
|
||||||
if: ${{ steps.biome_check.outcome == 'failure' }}
|
|
||||||
uses: peter-evans/create-pull-request@v7
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
branch: biome-fix/main
|
|
||||||
base: main
|
|
||||||
title: "chore(biome): auto-fix style issues"
|
|
||||||
body: |
|
|
||||||
This PR was automatically created by a workflow to fix Biome style issues on main.
|
|
||||||
|
|
||||||
Changes made:
|
|
||||||
- Applied Biome auto-fixes to resolve style issues
|
|
||||||
commit-message: "chore(biome): auto-fix style issues [bot]"
|
|
||||||
author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
|
|
||||||
delete-branch: true
|
|
Loading…
Add table
Add a link
Reference in a new issue