31 lines
926 B
YAML

# File sync action
name: File Sync
on:
push:
branches:
- drag-n-drop
jobs:
filesync:
runs-on: ubuntu-latest
steps:
# Check out repository code
- name: "[📚->🖥️] Check out repository code"
uses: actions/checkout@v3
with:
ref: "drag-n-drop"
# Installs python requirements from the requirements.txt file
- name: "[🤼->🖥️] Install python requirements"
run: pip install -r .allspice/utils/requirements.txt
# Run the filesync.py script from the .allspice/utils directory
- name: Sync files between drag-n-drop and develop branches
run: |
ALLSPICE_AUTH_TOKEN=${{ secrets.PAT }} \
python .allspice/utils/filesync.py \
"${{ allspice.repository }}" \
--allspice_hub_url "${{ allspice.server_url }}" \
--dragdrop_branch_name drag-n-drop \
--unzip_new_archives