From 957c3fb7abb6f19e5e6a71cbc5f75eb435df1451 Mon Sep 17 00:00:00 2001 From: Lachlan Grose Date: Fri, 9 Feb 2024 09:15:26 +1100 Subject: [PATCH] ci: adding release please action --- .github/workflows/release-please.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..3378053 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,23 @@ +on: + push: +name: release-please +jobs: + linting: + name: Linting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install black ruff + - name: Autoformat with black + run: | + black . + - name: Lint with ruff + run: | + ruff check . + ruff fix . + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "style: style fixes by ruff and autoformatting by black"