Skip to content

Commit f421a2f

Browse files
committed
Chore: 데일리 아카이빙 yml 파일 추가
1 parent b454e12 commit f421a2f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Archive dev branch daily
2+
3+
on:
4+
schedule:
5+
- cron: "59 14 * * *" # 한국 시간(KST) 23:59 (UTC+14:59)
6+
workflow_dispatch: # 수동 실행 가능
7+
8+
jobs:
9+
archive:
10+
name: Archive dev branch
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0 # 모든 브랜치 가져오기
18+
19+
- name: Set archive branch name
20+
id: date
21+
run: echo "BRANCH_NAME=archive-$(date +'%Y-%m-%d')" >> $GITHUB_ENV
22+
23+
- name: Create new archive branch
24+
run: |
25+
git checkout dev
26+
git pull origin dev
27+
git checkout -b ${{ env.BRANCH_NAME }}
28+
git push origin ${{ env.BRANCH_NAME }}

0 commit comments

Comments
 (0)