-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 956 Bytes
/
sync-notes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: sync-notes
on:
schedule:
- cron: "0 17 * * *"
jobs:
sync-notes:
runs-on: ubuntu-latest
name: "Sync latest notes"
steps:
- name: "Check out"
uses: actions/checkout@v2
- name: Checkout submodules
run: |
git submodule update --init --recursive
cd content/note
git pull origin main
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
commit-message: sync with josix-kg ${{ env.LATEST_COMMIT_ID }}
branch: latest-note
title: 'Sync with latest notes'
body: |
Sync with latest notes
labels: |
sync-notess
automation
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"