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 2e4689e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/sync-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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 --remote

- 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 2e4689e

Please sign in to comment.