Skip to content

Commit 0093b0c

Browse files
committed
WIP
1 parent 61a54d7 commit 0093b0c

File tree

1 file changed

+9
-26
lines changed

1 file changed

+9
-26
lines changed

.github/workflows/dd-sync.yml

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,16 @@ on:
66
- cron: '22 14 * * *' # Runs every day at 14:15 UTC
77
workflow_dispatch:
88

9-
permissions:
10-
contents: write
11-
actions: read
12-
139
jobs:
1410
sync:
1511
runs-on: ubuntu-latest
16-
1712
steps:
18-
- name: Checkout code
19-
uses: actions/checkout@v2
20-
with:
21-
persist-credentials: false
22-
fetch-depth: 0
23-
24-
- name: Pull latest changes from upstream
25-
run: |
26-
git config --global user.email "[email protected]"
27-
git config --global user.name "Datadog Syncup Service"
28-
git remote add upstream https://github.com/openjdk/jdk.git
29-
git fetch upstream
30-
git checkout -b upstream-master upstream/master
31-
git checkout master
32-
git merge upstream-master
33-
34-
- name: Push changes to downstream
35-
uses: ad-m/github-push-action@master
36-
with:
37-
github_token: ${{ secrets.GH_PAT }}
38-
branch: master
13+
- name: Check out
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
- uses: aormsby/Fork-Sync-With-Upstream-action@v1
18+
with:
19+
upstream_repository: openjdk/jdk
20+
upstream_branch: master
21+
target_branch: master

0 commit comments

Comments
 (0)