From c2a5d26bb39f913c3bfb9ba4fc6da50694c2841b Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 30 Mar 2025 18:04:25 +0300 Subject: [PATCH] Streamline actions, format, clean up dependabot.yml Signed-off-by: XhmikosR --- .github/dependabot.yml | 47 ------------------- .../workflows/calibreapp-image-actions.yml | 12 +++-- .github/workflows/ci.yml | 4 +- .github/workflows/codespell.yml | 19 ++++---- .github/workflows/editorconfig-checker.yml | 5 +- .github/workflows/stale_pr.yml | 11 ++--- 6 files changed, 29 insertions(+), 69 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9f05c49..8124e9b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -45,50 +45,3 @@ updates: patterns: - "*" target-branch: master - -# As above, but for development-v6 - - package-ecosystem: npm - directory: "/" - schedule: - interval: weekly - day: saturday - time: "10:00" - target-branch: release/v6.0 - open-pull-requests-limit: 10 - versioning-strategy: increase - reviewers: - - "pi-hole/docs-maintainers" - groups: - npm-dependencies: - patterns: - - "*" - - package-ecosystem: pip - directory: "/" - schedule: - interval: weekly - day: saturday - time: "10:00" - target-branch: release/v6.0 - open-pull-requests-limit: 10 - allow: - - dependency-type: direct - - dependency-type: indirect - reviewers: - - "pi-hole/docs-maintainers" - groups: - pip-dependencies: - patterns: - - "*" - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: weekly - day: saturday - time: "10:00" - reviewers: - - "pi-hole/docs-maintainers" - groups: - github_action-dependencies: - patterns: - - "*" - target-branch: release/v6.0 diff --git a/.github/workflows/calibreapp-image-actions.yml b/.github/workflows/calibreapp-image-actions.yml index b02224a..de55dd1 100644 --- a/.github/workflows/calibreapp-image-actions.yml +++ b/.github/workflows/calibreapp-image-actions.yml @@ -3,10 +3,10 @@ name: Compress Images on: pull_request: paths: - - '**.jpg' - - '**.jpeg' - - '**.png' - - '**.webp' + - "**.jpg" + - "**.jpeg" + - "**.png" + - "**.webp" jobs: build: @@ -15,8 +15,10 @@ jobs: name: calibreapp/image-actions runs-on: ubuntu-latest steps: - - name: Checkout Repo + - name: Clone repository uses: actions/checkout@v4.2.2 + with: + persist-credentials: false - name: Compress Images uses: calibreapp/image-actions@1.1.0 # TODO: if they start using a tag like v1, switch to that diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1cb81eb..b3356f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,8 +17,10 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.2.2 + - name: Clone repository + uses: actions/checkout@v4.2.2 with: + persist-credentials: false fetch-depth: 0 - name: Set up Python diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 9726936..7092d71 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -8,12 +8,13 @@ jobs: if: github.event.pull_request.draft == false runs-on: ubuntu-latest steps: - - - name: Checkout repository - uses: actions/checkout@v4.2.2 - - - name: Spell-Checking - uses: codespell-project/actions-codespell@master - with: - ignore_words_file: .codespellignore - skip: ./docs/routers/fritzbox-de.md,./mkdocs.yml,./package.json,./package-lock.json,./.markdownlint.json,./requirements.txt, ./MathJax-es5/* + - name: Clone repository + uses: actions/checkout@v4.2.2 + with: + persist-credentials: false + + - name: Spell-Checking + uses: codespell-project/actions-codespell@master + with: + ignore_words_file: .codespellignore + skip: ./docs/routers/fritzbox-de.md,./mkdocs.yml,./package.json,./package-lock.json,./.markdownlint.json,./requirements.txt, ./MathJax-es5/* diff --git a/.github/workflows/editorconfig-checker.yml b/.github/workflows/editorconfig-checker.yml index c67463b..6aa9f26 100644 --- a/.github/workflows/editorconfig-checker.yml +++ b/.github/workflows/editorconfig-checker.yml @@ -9,6 +9,9 @@ jobs: name: editorconfig-checker runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.2.2 + - name: Clone repository + uses: actions/checkout@v4.2.2 + with: + persist-credentials: false - uses: editorconfig-checker/action-editorconfig-checker@main - run: editorconfig-checker diff --git a/.github/workflows/stale_pr.yml b/.github/workflows/stale_pr.yml index 2441271..b9f23df 100644 --- a/.github/workflows/stale_pr.yml +++ b/.github/workflows/stale_pr.yml @@ -5,12 +5,11 @@ name: Close stale PR on: schedule: - - cron: '0 10 * * *' + - cron: "0 10 * * *" workflow_dispatch: jobs: stale: - runs-on: ubuntu-latest permissions: issues: write @@ -27,9 +26,9 @@ jobs: # Close PRs immediately, after marking them 'stale' days-before-pr-close: 0 # only run the action on merge conflict PR - any-of-labels: 'Merge Conflict' - exempt-pr-labels: 'Internal, Never Stale, On Hold, WIP' + any-of-labels: "Merge Conflict" + exempt-pr-labels: "Internal, Never Stale, On Hold, WIP" exempt-all-pr-assignees: true operations-per-run: 300 - stale-pr-message: '' - close-pr-message: 'Existing merge conflicts have not been addressed. This PR is considered abandoned.' + stale-pr-message: "" + close-pr-message: "Existing merge conflicts have not been addressed. This PR is considered abandoned."