Skip to content

Commit e7c7983

Browse files
authored
Create update-master-from-upstream.yml (#155)
1 parent fccb414 commit e7c7983

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Update master from upstreame
2+
on:
3+
schedule:
4+
- cron: '0 0 * * 0'
5+
jobs:
6+
updateFork:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Reset the default branch with upstream changes
11+
run: |
12+
git remote add upstream https://github.com/powershell/powershell.git
13+
git fetch upstream master:master-upstream-local
14+
git reset --hard master-upstream-local
15+
- name: Create Pull Request
16+
uses: peter-evans/create-pull-request@v3
17+
with:
18+
token: ${{ secrets.REPO_ACCESS_TOKEN }}
19+
branch: upstream-changes
20+
base: master-upstream

0 commit comments

Comments
 (0)