@@ -18,12 +18,12 @@ name: stale repo identifier
1818 workflow_dispatch :
1919 push :
2020 branches :
21- - main
21+ - fix-stale-repos-action
2222 schedule :
2323 - cron : " 0 1 1 * *" # Runs monthly: at 01:00 UTC on the 1st day of every month
2424
2525permissions :
26- contents : read
26+ contents : write
2727 issues : write
2828
2929jobs :
@@ -34,14 +34,11 @@ jobs:
3434 matrix :
3535 days : [335, 365]
3636
37- permissions :
38- contents : read
39-
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
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
@@ -63,14 +60,11 @@ jobs:
6360 runs-on : ubuntu-latest
6461 needs : build # Runs after all matrix jobs finish
6562
66- permissions :
67- issues : write
68-
6963 steps :
70- - uses : actions/checkout@v4
64+ - uses : actions/checkout@v6
7165
7266 - name : Download all stale report artifacts
73- uses : actions/download-artifact@v4
67+ uses : actions/download-artifact@v6
7468 with :
7569 path : stale_reports
7670
9084 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9185
9286 - name : Create or update issue
93- uses : peter-evans/create-issue-from-file@v5
87+ uses : peter-evans/create-issue-from-file@v6
9488 with :
9589 issue-number : ${{ env.issue_number }}
9690 title : Stale repository report
0 commit comments