Sync mlf-core project #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync mlf-core project | |
on: | |
schedule: | |
- cron: '0 1 * * *' # 1 am UTC | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install mlf-core | |
run: pip install mlf-core | |
- uses: actions/checkout@v2 | |
name: Check out source-code repository | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.MLF_CORE_SYNC_TOKEN }} | |
- uses: oleksiyrudenko/gha-git-credentials@v2 | |
with: | |
name: 'waseju' | |
email: '[email protected]' | |
actor: 'waseju' | |
token: '${{ secrets.MLF_CORE_SYNC_TOKEN }}' | |
- name: Sync project | |
run: mlf-core --verbose sync . ${{ secrets.MLF_CORE_SYNC_TOKEN }} waseju |