Skip to content

Commit 2c2a521

Browse files
committed
定期処理をGitHub Actionsに移行
1 parent a595d22 commit 2c2a521

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/monthly.yml

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
11
on:
22
workflow_dispatch:
33
schedule:
4-
# 3:25 UTC (12:25 JST) on 1st day of every month
4+
# 3:25 UTC (12:25 JST)
55
- cron: '25 3 1 * *'
6+
- cron: '25 3 2/1 * *'
67

78
jobs:
9+
archive:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
ref: source
15+
fetch-tags: true
16+
- run: bash run.sh
17+
env:
18+
GIT_REMOTE_URL: https://github-actions:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
19+
820
release:
921
runs-on: ubuntu-latest
22+
if: github.event.schedule == '25 3 1 * *'
23+
needs: archive
1024
steps:
1125
- name: Get Info
1226
id: get-info

0 commit comments

Comments
 (0)