Skip to content

Merge to Main

Merge to Main #4

Workflow file for this run

name: Merge to Main
on:
schedule:
- cron: '30 5 * * 1,2' # 맀주 μ›”μš”μΌ(1)κ³Ό μˆ˜μš”μΌ(3) 9:00 μ‹œμ— μ‹€ν–‰λ˜λ„λ‘ μŠ€μΌ€μ€„ μ„€μ • (Cron ν‘œν˜„μ‹)
jobs:
merge-to-main:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Merge to Main
run: |
git checkout main
git merge dev --no-ff --no-edit
git push origin main
- name: Send slack when failed
if: ${{ failure() }}
uses: ./.github/actions/slack-notify
with:
slack_incoming_url: ${{ secrets.SLACK_INCOMING_URL }}
- name: Send slack if completed
if: ${{ success() }}
uses: ./.github/actions/slack-notify
with:
status: success
slack_incoming_url: ${{ secrets.SLACK_INCOMING_URL }}