Skip to content

Commit

Permalink
Merge pull request #47 from josix/cd/auto-sync-notes
Browse files Browse the repository at this point in the history
ci(sync-notes): add sync-notes workflow
  • Loading branch information
josix committed May 12, 2022
2 parents 429dba5 + 7fd461f commit c9d5e5c
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/sync-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: sync-notes

on:
push:
branches:
- master

schedule:
- cron: "0 0 12 * *"

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
ls
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 }}"

0 comments on commit c9d5e5c

Please sign in to comment.