-
Notifications
You must be signed in to change notification settings - Fork 35
50 lines (39 loc) · 1.21 KB
/
update-issues.yml
File metadata and controls
50 lines (39 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: "Update Good First Issues"
on:
schedule:
- cron: '15 20 * * *'
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
update-issues:
if: github.actor != 'github-actions[bot]'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Generate good first issues CSV
uses: drkrillo/good-first-issues@main
with:
usernames: ${{ secrets.USERNAMES }}
github-token: ${{ secrets.ACCESS_TOKEN }}
output-path: good_first_issues.csv
- name: Render README
run: |
python -m app.render_readme \
--input good_first_issues.csv
- name: Upload CSV artifact
uses: actions/upload-artifact@v4
with:
name: good-first-issues
path: good_first_issues.csv
- name: Commit and push changes
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add README.md good_first_issues.csv
git diff --staged --quiet || git commit -m "chore: update good first issues"
git push origin main