Skip to content

Commit

Permalink
ci: use reusable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw committed Oct 29, 2023
1 parent ed7de0e commit f107ded
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions .github/workflows/formatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,12 @@ name: Format
on:
push:
paths:
- build/**
- .github/workflows/formatter.yml
- '**.py'

permissions:
contents: write

jobs:
format:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Sort imports
uses: isort/isort-action@master
with:
configuration: --atomic

- name: Set Git config
run: |
git config user.email github-actions[bot]@users.noreply.github.com
git config user.name github-actions[bot]
- name: Commit changes
run: |
git add .
git commit -m "style: sort Python imports" || true
git push
uses: winstxnhdw/actions/.github/workflows/format-python.yml@main

0 comments on commit f107ded

Please sign in to comment.