Merge to Main #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Merge to Main | |
on: | |
schedule: | |
- cron: '30 4 * * 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 }} |