This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
sync from private #1
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: Code formatting | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: | |
- '.github/**' | |
- '.dockerignore' | |
- '.gitattributes' | |
- '.gitignore' | |
- 'Dockerfile' | |
- 'README.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Master | |
uses: actions/checkout@v4 | |
- name: Code formatting using black | |
uses: psf/black@stable | |
with: | |
options: "--exclude=.github,.dockerignore,.gitattributes,.gitignore,Dockerfile,README.md" | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
author: GitHub Actions <[email protected]> | |
commit-message: Format from Balck | |
delete-branch: true | |
branch-suffix: short-commit-hash | |
title: Format from Balck |