Skip to content

Commit 9e67017

Browse files
test
1 parent ea45449 commit 9e67017

File tree

3 files changed

+64
-1
lines changed

3 files changed

+64
-1
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
- name: Checkout
15+
uses: actions/checkout@v1
16+
with:
17+
repository: laravel-frontend-presets/paper-dashboard
18+
token: ${{ secrets.CT_TOKEN }}
19+
- name: Configure git
20+
run: |
21+
git config --global user.name "CI Bot"
22+
git config --global user.email "[email protected]"
23+
git remote add upstream https://${{ secrets.CT_TOKEN }}@github.com/laravel-frontend-presets/paper-dashboard
24+
shell: bash
25+
- name: Fetch and merge
26+
id: fetch-merge
27+
run: |
28+
git fetch upstream
29+
git checkout upstream/master
30+
git merge origin/master
31+
git push upstream HEAD:master --force
32+
shell: bash
33+
- run: echo "The fork was updated"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
- 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
18+
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!"

.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)