Skip to content

Commit 8fe8813

Browse files
committed
Update and fix stale repos action
Signed-off-by: Matej Feder <[email protected]>
1 parent ba7c2de commit 8fe8813

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/stale-repos.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,13 @@
1616
name: stale repo identifier
1717
"on":
1818
workflow_dispatch:
19-
push:
19+
pull_request_target:
2020
branches:
2121
- main
22+
- fix-stale-repos-action
2223
schedule:
2324
- cron: "0 1 1 * *" # Runs monthly: at 01:00 UTC on the 1st day of every month
2425

25-
permissions:
26-
contents: read
27-
issues: write
28-
2926
jobs:
3027
build:
3128
name: Stale repo identifier
@@ -38,10 +35,10 @@ jobs:
3835
contents: read
3936

4037
steps:
41-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v6
4239

4340
- name: Run stale_repos tool
44-
uses: github/stale-repos@v2.1.3
41+
uses: github/stale-repos@v8.0.3
4542
env:
4643
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4744
ORGANIZATION: SovereignCloudStack
@@ -53,7 +50,7 @@ jobs:
5350
run: mv stale_repos.md stale_repos_${{ matrix.days }}.md
5451

5552
- name: Upload stale report artifact
56-
uses: actions/upload-artifact@v4
53+
uses: actions/upload-artifact@v5
5754
with:
5855
name: stale_repos_report_${{ matrix.days }}
5956
path: stale_repos_${{ matrix.days }}.md
@@ -64,13 +61,14 @@ jobs:
6461
needs: build # Runs after all matrix jobs finish
6562

6663
permissions:
64+
contents: write
6765
issues: write
6866

6967
steps:
70-
- uses: actions/checkout@v4
68+
- uses: actions/checkout@v6
7169

7270
- name: Download all stale report artifacts
73-
uses: actions/download-artifact@v4
71+
uses: actions/download-artifact@v6
7472
with:
7573
path: stale_reports
7674

@@ -90,7 +88,7 @@ jobs:
9088
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9189

9290
- name: Create or update issue
93-
uses: peter-evans/create-issue-from-file@v5
91+
uses: peter-evans/create-issue-from-file@v6
9492
with:
9593
issue-number: ${{ env.issue_number }}
9694
title: Stale repository report

0 commit comments

Comments
 (0)