4
4
schedule :
5
5
# Schedule to run every Tuesday at 13:00 (1 PM) JST (04:00 UTC)
6
6
- cron : ' 0 4 * * 2'
7
+ workflow_dispatch :
7
8
8
9
jobs :
9
10
create-issue :
10
11
runs-on : ubuntu-latest
11
12
steps :
12
- - name : Create GitHub Issue
13
- uses : actions/github-script@v6
14
- with :
15
- script : |
16
- const now = new Date();
17
- const nextTuesday = new Date(now);
18
- nextTuesday.setDate(now.getDate() + ((2 + 7 - now.getDay()) % 7));
19
- const year = nextTuesday.getFullYear();
20
- const month = String(nextTuesday.getMonth() + 1).padStart(2, '0');
21
- const day = String(nextTuesday.getDate()).padStart(2, '0');
22
- const dateString = `${year}-${month}-${day}T12:30/12:55+09:00`;
13
+ - name : Create GitHub Issue
14
+ uses : actions/github-script@v6
15
+ with :
16
+ script : |
17
+ const now = new Date();
18
+ const nextTuesday = new Date(now);
19
+ nextTuesday.setDate(now.getDate() + ((2 + 7 - now.getDay()) % 7));
20
+ const year = nextTuesday.getFullYear();
21
+ const month = String(nextTuesday.getMonth() + 1).padStart(2, '0');
22
+ const day = String(nextTuesday.getDate()).padStart(2, '0');
23
+ const dateString = `${year}-${month}-${day}T12:30/12:55+09:00`;
23
24
24
- const issueTitle = '🖐Smart Maps Meetup Weekly';
25
- const issueBody = `
26
- ## ${dateString} 🖐Smart Maps Meetup Weekly
27
- ### 接続アドレス
28
- https://teams.microsoft.com/l/meetup-join/19%3ameeting_YWNjZDBlNDMtY2RiNi00YjE5LTkyMzYtMWI5MjE2NzM3NTU5%40thread.v2/0?context=%7b%22Tid%22%3a%22eba9fc42-5588-4d31-8a4e-6e1bf79d31c0%22%2c%22Oid%22%3a%22265cf6f7-5673-4ef0-93bc-ebb87d669a75%22%7d
25
+ const issueTitle = '🖐Smart Maps Meetup Weekly';
26
+ const issueBody = `
27
+ ## ${dateString} 🖐Smart Maps Meetup Weekly
28
+ ### 接続アドレス
29
+ https://teams.microsoft.com/l/meetup-join/19%3ameeting_YWNjZDBlNDMtY2RiNi00YjE5LTkyMzYtMWI5MjE2NzM3NTU5%40thread.v2/0?context=%7b%22Tid%22%3a%22eba9fc42-5588-4d31-8a4e-6e1bf79d31c0%22%2c%22Oid%22%3a%22265cf6f7-5673-4ef0-93bc-ebb87d669a75%22%7d
29
30
30
- 会議 ID: 429 235 468 444
31
- パスコード: EZycz3`;
32
- const issue = await github.issues.create({
33
- owner: context.repo.owner,
34
- repo: context.repo.repo,
35
- title: issueTitle,
36
- body: issueBody
37
- });
38
- console.log(`Created issue ${issue.data.html_url}`);
39
-
31
+ 会議 ID: 429 235 468 444
32
+ パスコード: EZycz3`;
33
+ const issue = await github.issues.create({
34
+ owner: context.repo.owner,
35
+ repo: context.repo.repo,
36
+ title: issueTitle,
37
+ body: issueBody
38
+ });
39
+ console.log(`Created issue ${issue.data.html_url}`);
0 commit comments