Skip to content

Commit 7f3519f

Browse files
committed
fix: spacing issue in yaml
1 parent 31b617a commit 7f3519f

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

.github/workflows/issues-weekly-creation.yml

+26-26
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,36 @@ on:
44
schedule:
55
# Schedule to run every Tuesday at 13:00 (1 PM) JST (04:00 UTC)
66
- cron: '0 4 * * 2'
7+
workflow_dispatch:
78

89
jobs:
910
create-issue:
1011
runs-on: ubuntu-latest
1112
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`;
2324
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
2930
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

Comments
 (0)