Skip to content

Commit 177d0d9

Browse files
fix
1 parent 4a9ee66 commit 177d0d9

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/github-actions-deploy.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ jobs:
2525
repository: laravel-frontend-presets/paper-dashboard
2626
token: ${{ secrets.CT_TOKEN }}
2727
path: preset_folder
28+
run: |
29+
git config --global user.name "CI Bot"
30+
git config --global user.email "[email protected]"
31+
git remote add upstream https://${{ secrets.CT_TOKEN }}@github.com/laravel-frontend-presets/paper-dashboard
32+
git fetch upstream
33+
git checkout upstream/master
34+
git merge origin/master
35+
git push upstream HEAD:master --force
2836
- name: Configure git and push to preset
2937
working-directory: /home/runner/work/paper-dashboard-laravel/paper-dashboard-laravel/preset_folder
3038
run: |
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Update Fork
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
Explore-GitHub-Actions:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Stats
11+
run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event. "
12+
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
13+
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
14+
- run: mkdir ct_folder
15+
- run: cd ct_folder
16+
- name: Checkout ct
17+
uses: actions/checkout@v3
18+
with:
19+
repository: creativetimofficial/paper-dashboard-laravel
20+
token: ${{ secrets.CT_TOKEN }}
21+
path: ct_folder
22+
- name: Checkout preset
23+
uses: actions/checkout@v3
24+
with:
25+
repository: laravel-frontend-presets/paper-dashboard
26+
token: ${{ secrets.CT_TOKEN }}
27+
path: preset_folder
28+
- name: Configure git and push to preset
29+
working-directory: /home/runner/work/paper-dashboard-laravel/paper-dashboard-laravel/preset_folder
30+
run: |
31+
rsync -r --exclude '.git' /home/runner/work/paper-dashboard-laravel/paper-dashboard-laravel/ct_folder/* /home/runner/work/paper-dashboard-laravel/paper-dashboard-laravel/preset_folder
32+
git config --global user.name "CI Bot"
33+
git config --global user.email "[email protected]"
34+
git add .
35+
git commit -m "merge with fork"
36+
git push origin HEAD:master --force
37+
shell: bash
38+
- run: echo "The fork was updated"

0 commit comments

Comments
 (0)