From 161c647f8aa9c3dfa34cdf8bfada6aa37f4694cb Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 29 Nov 2024 20:01:30 +0100 Subject: [PATCH] ci: commit black changes directly ffs --- .github/workflows/autoblack.yml | 15 +++++---------- package_linter.py | 2 ++ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/autoblack.yml b/.github/workflows/autoblack.yml index 761222b..91c6beb 100644 --- a/.github/workflows/autoblack.yml +++ b/.github/workflows/autoblack.yml @@ -22,14 +22,9 @@ jobs: $diff = git diff $HasDiff = $diff.Length -gt 0 Write-Host "::set-output name=files_changed::$HasDiff" - - name: Create Pull Request - if: steps.check_files_changed.outputs.files_changed == 'true' - uses: peter-evans/create-pull-request@v6 + - uses: stefanzweifel/git-auto-commit-action@v5 with: - token: ${{ secrets.GITHUB_TOKEN }} - title: "Format Python code with Black" - commit-message: ":art: Format Python code with Black" - body: | - This pull request uses the [psf/black](https://github.com/psf/black) formatter. - base: ${{ github.head_ref }} # Creates pull request onto pull request or commit branch - branch: actions/black + commit_message: ":art: Format Python code with Black" + commit_user_name: yunohost-bot + commit_user_email: yunohost-bot@users.noreply.github.com + commit_author: 'yunohost-bot ' diff --git a/package_linter.py b/package_linter.py index cfedd5d..5649c55 100755 --- a/package_linter.py +++ b/package_linter.py @@ -9,6 +9,8 @@ from tests.test_app import App + + def main(): parser = argparse.ArgumentParser() parser.add_argument("app_path", type=Path, help="The path to the app to lint")