diff --git a/.github/workflows/gitlint.yml b/.github/workflows/gitlint.yml new file mode 100644 index 0000000..5e56c89 --- /dev/null +++ b/.github/workflows/gitlint.yml @@ -0,0 +1,16 @@ +--- +name: "Nitpick git commits" + +on: [push] + +jobs: + nitpick: + runs-on: ubuntu-latest + steps: + - name: Setup repository + uses: actions/checkout@v6 + with: + ref: ${{ github.head_ref }} + + - name: Execute git linting + uses: seravo/gitlint@v1 diff --git a/.github/workflows/gnitpick.yml b/.github/workflows/gnitpick.yml deleted file mode 100644 index 8cea527..0000000 --- a/.github/workflows/gnitpick.yml +++ /dev/null @@ -1,28 +0,0 @@ ---- -name: "Nitpick git commits" - -on: [push, pull_request] - -env: - DOMAINS: seravo.com - PYTHON_VERSION: "3.12" - -jobs: - nitpick: - runs-on: ubuntu-latest - steps: - - name: Setup repository - uses: actions/checkout@v6 - with: - ref: ${{ github.head_ref }} - - - name: Install Gnitpick - run: curl -O https://raw.githubusercontent.com/Seravo/gnitpick/master/gnitpick.py - - - name: Set up python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v6 - with: - python-version: ${{ env.PYTHON_VERSION }} - - - name: Run gnitpick - run: python3 gnitpick.py --verbose --email-domains "${DOMAINS}"