Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1a27294

Browse files
Create j_sync_upstream.yaml
1 parent b764b87 commit 1a27294

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: j_sync_upstream
2+
3+
on:
4+
schedule:
5+
- cron: '30 0 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
merge:
10+
env:
11+
BASE_BRANCH: master
12+
HEAD_BRANCH: master
13+
ACCESS_TOKEN: ${{ secrets.GIT_ORG_ACCESS_TOKEN }}
14+
REPO_MERGE_UPSTREAM_API: https://api.github.com/repos/AlgorithmAndLeetCode/youngyangyang04-leetcode-master/merges
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Using REST API to merge upstream
18+
run: |
19+
curl \
20+
-X POST \
21+
-H "Accept: application/vnd.github.v3+json" \
22+
-H "content-type: application/json" \
23+
-H "authorization: Bearer ${{env.ACCESS_TOKEN}}" \
24+
${{env.REPO_MERGE_UPSTREAM_API}} \
25+
-d '{"base":"${{env.BASE_BRANCH}}","head":"${{env.HEAD_BRANCH}}"}'

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /