Compare commits
1 Commits
50b67cf967
...
17f38c00c5
Author | SHA1 | Date | |
---|---|---|---|
17f38c00c5
|
@@ -1,11 +1,11 @@
|
|||||||
name: process-repository
|
name: process-issues
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "@daily"
|
- cron: '@daily'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
process-repository:
|
process-issues:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Python Script
|
- name: Checkout Python Script
|
||||||
@@ -14,27 +14,22 @@ jobs:
|
|||||||
repository: alexlebens/workflow-scripts
|
repository: alexlebens/workflow-scripts
|
||||||
ref: main
|
ref: main
|
||||||
token: ${{ secrets.BOT_TOKEN }}
|
token: ${{ secrets.BOT_TOKEN }}
|
||||||
path: workflow-scripts
|
path: scripts
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.13"
|
python-version: '3.13'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install requests immutabledict
|
run: pip install requests
|
||||||
|
|
||||||
- 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 }}
|
||||||
LOG_LEVEL: DEBUG
|
STALE_DAYS: 3
|
||||||
ISSUE_STALE_DAYS: 3
|
STALE_TAG: 16
|
||||||
ISSUE_STALE_TAG: 16
|
EXCLUDE_TAG: 20
|
||||||
ISSUE_EXCLUDE_TAG: 20
|
run: python ./scripts/scripts/process-issues.py
|
||||||
PULL_REQUEST_STALE_DAYS: 3
|
|
||||||
PULL_REQUEST_STALE_TAG: 16
|
|
||||||
PULL_REQUEST_REQUIRED_TAG: 15
|
|
||||||
run: python ./workflow-scripts/scripts/process-repository.py
|
|
35
.gitea/workflows/process-pull-requests.yaml
Normal file
35
.gitea/workflows/process-pull-requests.yaml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
name: process-pull-requests
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '@daily'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
process-pull-requests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Python Script
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: alexlebens/workflow-scripts
|
||||||
|
ref: main
|
||||||
|
token: ${{ secrets.BOT_TOKEN }}
|
||||||
|
path: scripts
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.13'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pip install requests
|
||||||
|
|
||||||
|
- name: Run Script
|
||||||
|
env:
|
||||||
|
INSTANCE_URL: ${{ vars.INSTANCE_URL }}
|
||||||
|
REPOSITORY: ${{ gitea.repository }}
|
||||||
|
TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||||
|
STALE_DAYS: 3
|
||||||
|
STALE_TAG: 16
|
||||||
|
REQUIRED_TAG: 15
|
||||||
|
run: python ./scripts/scripts/process-pull-requests.py
|
Reference in New Issue
Block a user