516.1668 and 516.1669 #16
This file contains hidden or 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: BYOND Mirror Update | |
| # on: | |
| # push: | |
| # branches: | |
| # - master | |
| jobs: | |
| mirror: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| # - name: List installed packages (for debugging) | |
| # run: apt list --installed | |
| - name: Install Chromium | |
| run: sudo apt install -y chromium-browser | |
| - name: Install Python dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install webdriver-manager selenium | |
| - name: Run BYOND mirror script | |
| run: python scripts/download_byond_builds.py | |
| - name: Commit and push if content changed | |
| run: | | |
| git config user.name "GitHub Actions" | |
| git config user.email "[email protected]" | |
| git add -A | |
| timestamp=$(date -u) | |
| git commit -m "Latest data: ${timestamp}" || exit 0 | |
| git push |