Skip to content

Commit e2b35fb

Browse files
fix
2 parents f31516b + f7c7e13 commit e2b35fb

File tree

1 file changed

+34
-18
lines changed

1 file changed

+34
-18
lines changed

.github/workflows/github-actions-deploy.yml2

Lines changed: 34 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,40 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Stats
11-
run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
11+
run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event. "
1212
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
1313
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
14-
- name: Check out repository code
15-
uses: actions/checkout@v3
16-
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
17-
- name: List files in the repository
14+
- run: mkdir ct_folder
15+
- run: cd ct_folder
16+
- name: Checkout ct
17+
uses: actions/checkout@v1
18+
with:
19+
repository: creativetimofficial/paper-dashboard-laravel
20+
token: ${{ secrets.CT_TOKEN }}
21+
- run: cd ..
22+
- run: mkdir preset_folder
23+
- run: cd preset_folder
24+
- name: Checkout preset
25+
uses: actions/checkout@v1
26+
with:
27+
repository: laravel-frontend-presets/paper-dashboard
28+
token: ${{ secrets.CT_TOKEN }}
29+
- run: cd ..
30+
31+
32+
33+
- name: Configure git
1834
run: |
19-
ls ${{ github.workspace }}
20-
- name: Create a Push
21-
id: create_release
22-
uses: actions/create-release@v1
23-
env:
24-
GITHUB_TOKEN: ${{ secrets.TOKEN_CT }}
25-
- name: Update code on fork repository
26-
run: git remote add upstream https://github.com/teamupdivision/creativetimofficial/paper-dashboard-laravel.git
27-
- run: git fetch upstream
28-
- run: git checkout upstream/master
29-
- run: git merge origin/master
30-
- run: git push upstream/master
31-
- run: echo "The fork was updated!"
35+
git config --global user.name "CI Bot"
36+
git config --global user.email "[email protected]"
37+
git remote add upstream https://${{ secrets.CT_TOKEN }}@github.com/laravel-frontend-presets/paper-dashboard
38+
shell: bash
39+
- name: Fetch and merge
40+
id: fetch-merge
41+
run: |
42+
git fetch upstream
43+
git checkout upstream/master
44+
git merge origin/master
45+
git push upstream HEAD:master --force
46+
shell: bash
47+
- run: echo "The fork was updated"

0 commit comments

Comments
 (0)