Skip to content

Commit

Permalink
chore: 버셀 자동배포 actions
Browse files Browse the repository at this point in the history
  • Loading branch information
1eecan committed Jan 9, 2024
1 parent a9ffcb0 commit 510d5dd
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/dispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Repository Dispatch

on:
repository_dispatch:
types: [dispatch_event]

jobs:
sync:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Sync with Upstream
run: |
git remote add upstream https://github.com/Java-and-Script/pickple-log
git fetch upstream
git merge upstream/dev
git push origin dev
15 changes: 15 additions & 0 deletions .github/workflows/trigger_dispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Trigger repository_dispatch

on:
push:
branches:
- main
- dev

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- run: gh api /repos/1eecan/pickple-log/dispatches -f event_type='dispatch_event'
env:
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}

0 comments on commit 510d5dd

Please sign in to comment.