Merge pull request #87 from itpp-labs/DINAR2fork #100
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: "Push forked DINAR to Repos" | |
on: | |
push: | |
paths: | |
- ".github/workflows/fork2repos.yml" | |
- "workflow-files/fork2repos.py" | |
- "static-files/**" | |
- "config.yml" | |
branches: | |
- master | |
jobs: | |
upload-files: | |
runs-on: ubuntu-latest | |
if: "github.repository != 'itpp-labs/DINAR'" | |
steps: | |
- name: Checkout Fork | |
uses: actions/checkout@v2-beta | |
with: | |
path: FORK | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: "3.7.x" | |
- name: Install python tools | |
run: | | |
pip install plumbum pyyaml | |
- name: Sync DINAR files | |
run: | | |
python FORK/workflow-files/fork2repos.py FORK/config.yml "${{ secrets.BOT_TOKEN }}" "${{ secrets.BOT_NAME }}" "${{ secrets.BOT_EMAIL }}" |