Skip to content

Commit 2e4689e

Browse files
committed
Merge pull request #47 from josix/cd/auto-sync-notes
ci(sync-notes): add sync-notes workflow
2 parents 429dba5 + 7fd461f commit 2e4689e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/sync-notes.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: sync-notes
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
schedule:
9+
- cron: "0 0 12 * *"
10+
11+
jobs:
12+
sync-notes:
13+
runs-on: ubuntu-latest
14+
name: "Sync latest notes"
15+
steps:
16+
- name: "Check out"
17+
uses: actions/checkout@v2
18+
19+
- name: Checkout submodules
20+
run: git submodule update --remote
21+
22+
- name: Create Pull Request
23+
id: cpr
24+
uses: peter-evans/create-pull-request@v3
25+
with:
26+
commit-message: sync with josix-kg ${{ env.LATEST_COMMIT_ID }}
27+
branch: latest-note
28+
title: 'Sync with latest notes'
29+
body: |
30+
Sync with latest notes
31+
labels: |
32+
sync-notess
33+
automation
34+
35+
- name: Check outputs
36+
run: |
37+
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
38+
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"

0 commit comments

Comments
 (0)