.github/workflows/automirror.yml #154
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
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Set up git config | |
run: | | |
git config --global user.name "EtchDroid LibreSSL Mirroring CI" | |
git config --global user.email "[email protected]" | |
- name: Perform mirroring | |
env: | |
DEPLOY_USER: ${{ secrets.DEPLOYUSER }} | |
DEPLOY_PASSWD: ${{ secrets.DEPLOYTOKEN }} | |
run: | | |
git config --global credential.helper store | |
git clone https://${DEPLOY_USER}:${DEPLOY_PASSWD}@github.com/EtchDroid/LibreSSL.git | |
export LSSLM_GIT_REPO="$(pwd)/LibreSSL" | |
export LSSLM_TLS_ONLY=1 | |
export PYTHONUNBUFFERED=1 | |
python3 libressl_automirror.py | |