Skip to content

Commit

Permalink
ci(sync-notes): add sync-notes workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
josix committed May 12, 2022
1 parent 429dba5 commit 7fd461f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/sync-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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
with:
submodules: 'true'
token: ${{ secrets.PAT_TOKEN }}

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: sync with josix-kg ${{ env.LATEST_COMMIT_ID }}
committer: GitHub <noreply@github.com>
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
base: master
branch: latest-note
delete-branch: false
title: 'Sync with latest notes'
body: |
Sync with latest notes
draft: true
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 7fd461f

Please sign in to comment.