File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Bug tracker
2+
3+ on :
4+ workflow_dispatch :
5+ issues :
6+ types : [opened, labeled]
7+
8+ jobs :
9+ get-org-repos :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : austenstone/get-org-repos@main
13+ with :
14+ github-token : ${{ secrets.GH_TOKEN }}
15+ id : get-org-repos
16+ outputs :
17+ repos : ${{ steps.get-org-repos.outputs.repos }}
18+
19+ sync :
20+ needs :
21+ - get-org-repos
22+ runs-on : ubuntu-latest
23+ strategy :
24+ matrix :
25+ repo : ${{ fromJson(needs.get-org-repos.outputs.repos) }}
26+ fail-fast : false
27+ steps :
28+ - uses : actions/checkout@main
29+ with :
30+ repository : ${{ github.event.organization.login }}/${{ matrix.repo }}
31+ token : ${{ secrets.GH_TOKEN }}
32+ - uses : amenocal/stale@main
33+ with :
34+ repo-token : ${{ secrets.GH_TOKEN }}
35+ repo-name : ${{ matrix.repo }}
36+
37+ add_bug_to_project :
38+ if : github.event.label.name == 'bug' || contains(github.event.issue.labels.*.name, 'bug')
39+ runs-on : ubuntu-latest
40+ steps :
41+ - name : Add issue to project
42+ uses : actions/add-to-project@v1
43+ with :
44+ project-url : https://github.com/orgs/fairpm/projects/2
45+ github-token : ${{ secrets.PROJECT_PAT }}
46+ labeled : bug
You can’t perform that action at this time.
0 commit comments