mirror of
https://github.com/stashapp/CommunityScripts.git
synced 2026-04-12 09:52:34 -05:00
Remove code formatting workflows and related configuration files (#504)
This commit is contained in:
51
.github/workflows/on_pr_check_code_format.yml
vendored
51
.github/workflows/on_pr_check_code_format.yml
vendored
@@ -1,51 +0,0 @@
|
||||
name: Check Code Format
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
check_js_code_format:
|
||||
name: Check JS code format
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
|
||||
- name: Check format
|
||||
uses: creyD/prettier_action@v4.3
|
||||
with:
|
||||
prettier_options: --check .
|
||||
dry: true
|
||||
only_changed: true
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
check_py_code_format:
|
||||
name: Check PY code format
|
||||
runs-on: ubuntu-latest
|
||||
needs: check_js_code_format
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
|
||||
- name: Check format
|
||||
uses: psf/black@stable
|
||||
with:
|
||||
options: '--exclude="3rd party"'
|
||||
src: "."
|
||||
49
.github/workflows/on_push_check_code_format.yml
vendored
49
.github/workflows/on_push_check_code_format.yml
vendored
@@ -1,49 +0,0 @@
|
||||
name: Check Code Format
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
check_js_code_format:
|
||||
name: Check JS code format
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
- name: Check format
|
||||
uses: creyD/prettier_action@v4.3
|
||||
with:
|
||||
prettier_options: --check .
|
||||
dry: true
|
||||
only_changed: true
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
check_py_code_format:
|
||||
name: Check PY code format
|
||||
runs-on: ubuntu-latest
|
||||
needs: check_js_code_format
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
- name: Check format
|
||||
uses: psf/black@stable
|
||||
with:
|
||||
options: '--exclude="3rd party"'
|
||||
src: "."
|
||||
Reference in New Issue
Block a user