use single workflow script
Some checks failed
process-repository / process-repository (push) Failing after 18s
renovate / renovate (push) Successful in 43s
process-pull-requests / process-pull-requests (push) Failing after 13s

This commit is contained in:
2025-07-13 23:44:36 -05:00
parent 77a3e4a926
commit 3a1a432005

View File

@@ -1,11 +1,11 @@
name: process-issues name: process-repository
on: on:
schedule: schedule:
- cron: '@daily' - cron: '@daily'
jobs: jobs:
process-issues: process-repository:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Python Script - name: Checkout Python Script
@@ -14,7 +14,7 @@ jobs:
repository: alexlebens/workflow-scripts repository: alexlebens/workflow-scripts
ref: main ref: main
token: ${{ secrets.BOT_TOKEN }} token: ${{ secrets.BOT_TOKEN }}
path: scripts path: workflow-scripts
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
@@ -22,14 +22,19 @@ jobs:
python-version: '3.13' python-version: '3.13'
- name: Install dependencies - name: Install dependencies
run: pip install requests run: pip install requests immutabledict
- name: Run Script - name: Run Script
env: env:
INSTANCE_URL: ${{ vars.INSTANCE_URL }} INSTANCE_URL: ${{ vars.INSTANCE_URL }}
OWNER: ${{ gitea.owner }}
REPOSITORY: ${{ gitea.repository }} REPOSITORY: ${{ gitea.repository }}
TOKEN: ${{ secrets.BOT_TOKEN }} TOKEN: ${{ secrets.BOT_TOKEN }}
STALE_DAYS: 3 LOG_LEVEL: DEBUG
STALE_TAG: 21 ISSUE_STALE_DAYS: 3
EXCLUDE_TAG: 18 ISSUE_STALE_TAG: 21
run: python ./scripts/scripts/process-issues.py ISSUE_EXCLUDE_TAG: 18
PULL_REQUEST_STALE_DAYS: 3
PULL_REQUEST_STALE_TAG: 21
PULL_REQUEST_REQUIRED_TAG: 19
run: python ./workflow-scripts/scripts/process-repository.py