-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (51 loc) · 1.68 KB
/
create-weekly-issue.yml
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
51
52
53
54
55
56
57
58
59
60
name: Create Weekly Issue
on:
schedule:
- cron: '14 9 * * 6' # Runs at 3:14 PM IST on Saturday
workflow_dispatch:
jobs:
create-issue:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Read current_link.txt
id: read_link
run: |
echo "::set-output name=number::$(cat current_link.txt | cut -d'|' -f2)"
- name: Create Issue
uses: actions/github-script@v7
with:
script: |
let issueNumber = ${{ steps.read_link.outputs.number }};
issueNumber++;
const issue = {
title: `Nibble #${issueNumber} Content Checklist`,
body: `This is an automated issue to track weekly tasks for Nibble #${issueNumber}.
Primary Content Checklist:
- [ ] AI
- [ ] 0x
- [ ] Dev & Design
- [ ] WBUTA
- [ ] Builder's Nest
- [ ] Meme Of The Week
- [ ] Wisdom Bits
- [ ] Wallpaper
- [ ] Off Topic
- [ ] Standup
- [ ] A
- [ ] P
- [ ] Meta
Meta Content Checklist:
- [ ] Cover Image
- [ ] NotebookLM Podcast
- [ ] [latest.nibbles.dev](https://latest.nibbles.dev/) is updated?
- [ ] Social Media Post`,
labels: ['weekly-checklist']
};
github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
assignees: ['aashutoshrathi', 'thepushkarp'],
...issue
});