Skip to content

Instantly share code, notes, and snippets.

@adrianjost
Created May 13, 2020 08:07
Show Gist options
  • Save adrianjost/a778033cc568bb84c05faa8f9cf2ad7f to your computer and use it in GitHub Desktop.
Save adrianjost/a778033cc568bb84c05faa8f9cf2ad7f to your computer and use it in GitHub Desktop.
Example: Files Sync Action - simple
name: Sync
'on':
schedule:
- cron: '0 3 * * *'
push:
branches:
- master
jobs:
files:
name: Files
runs-on: ubuntu-latest
steps:
- uses: adrianjost/files-sync-action@v1.0.1
with:
GITHUB_TOKEN: '${{ secrets.SYNC_GITHUB_TOKEN }}'
FILE_PATTERNS: |-
^\.github\/workflows\/synced-.*\.yml$
^LICENSE\.md$
TARGET_REPOS: |-
adrianjost/Curriculum-Vitae
adrianjost/dedent-tabs
adrianjost/...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment