Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/actions/bot-changelog-generator/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,24 @@ inputs:
repo-name:
description: "Repository name in format owner/repo"
required: true
cache-dependency-path:
description: "Path to dependency metadata used for pip cache invalidation"
required: false
default: ""

runs:
using: "composite"
steps:
- name: Set up Python with cache
if: ${{ inputs.cache-dependency-path != '' }}
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: "pip"
cache-dependency-path: ${{ inputs.cache-dependency-path }}

- name: Set up Python
if: ${{ inputs.cache-dependency-path == '' }}
uses: actions/setup-python@v5
with:
python-version: "3.13"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/bot-autoassign-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: "pip"
cache-dependency-path: "setup.py"

- name: Install dependencies
run: pip install -e .[github_actions]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/bot-autoassign-pr-issue-link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: "pip"
cache-dependency-path: "setup.py"

- name: Install dependencies
run: pip install -e .[github_actions]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/bot-autoassign-pr-reopen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: "pip"
cache-dependency-path: "setup.py"

- name: Install dependencies
run: pip install -e .[github_actions]
Expand Down Expand Up @@ -65,6 +67,8 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: "pip"
cache-dependency-path: "setup.py"

- name: Install dependencies
run: pip install -e .[github_actions]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/bot-autoassign-stale-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: "pip"
cache-dependency-path: "setup.py"

- name: Install dependencies
run: pip install -e .[github_actions]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/reusable-bot-autoassign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: "pip"
cache-dependency-path: "openwisp-utils/setup.py"

- name: Install dependencies
run: pip install -e 'openwisp-utils/.[github_actions]'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/reusable-bot-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ jobs:
ref: master
sparse-checkout: |
.github/actions/bot-changelog-generator
setup.py
path: openwisp-utils-action

- name: Generate changelog
if: steps.check-commits.outputs.has_noteworthy == 'true'
uses: ./openwisp-utils-action/.github/actions/bot-changelog-generator
with:
cache-dependency-path: openwisp-utils-action/setup.py
github-token: ${{ steps.app-token.outputs.token }}
gemini-api-key: ${{ secrets.GEMINI_API_KEY }}
pr-number: ${{ steps.check-commits.outputs.pr_number }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/reusable-bot-ci-failure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: "pip"
cache-dependency-path: "trusted_scripts/setup.py"

- name: Install Tools
run: |
Expand Down
Loading