diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index b57ef53..4ff38dc 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -1,10 +1,9 @@ --- name: Lint -on: # yamllint disable-line rule:truthy +on: push: branches: ["**"] - # branches-ignore: [master] pull_request: branches: [master] @@ -15,32 +14,28 @@ jobs: name: Lint runs-on: ubuntu-latest + # Prevent the job from running twice (PR and push) + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name + permissions: - # contents permission to clone the repository contents: read packages: read - # issues and pull-requests permissions to write results as pull - # request comments. Omit them if you don't need summary comments issues: write pull-requests: write - # To report GitHub Actions status checks. Omit if you don't need - # to update commit status statuses: write steps: - name: Checkout code uses: actions/checkout@v6 with: - # super-linter needs the full git history to get the - # list of files that changed across commits fetch-depth: 0 persist-credentials: false - name: Super-linter - uses: super-linter/super-linter@v8.5.0 # x-release-please-version + uses: super-linter/super-linter@v8.5.0 env: DEFAULT_BRANCH: master VALIDATE_ALL_CODEBASE: false VALIDATE_GITHUB_ACTIONS_ZIZMOR: false - # To report GitHub Actions status checks + FIX_MARKDOWN_PRETTIER: true GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index abb8bb7..0c0021d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # pyastral-toolkit Modern python development environment available as Docker image with Astral tools (uv, ruff, ux) + +[![Super-Linter](https://github.com/TheColector/pyastral-toolkit/actions/workflows/super-linter.yml/badge.svg)](https://github.com/marketplace/actions/super-linter) \ No newline at end of file