Fix theory root files #3
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: Fix theory root files | |
| on: | |
| schedule: | |
| - cron: '0 10 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| fix-theory: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Download scripts | |
| run: | | |
| mkdir -p /tmp/scripts | |
| BASE="https://raw.githubusercontent.com/sou350121/Pulsar-KenVersion/main/scripts" | |
| curl -sL "$BASE/_vla_theory_classifier.py" -o /tmp/scripts/_vla_theory_classifier.py | |
| curl -sL "$BASE/fix-theory-root-files.py" -o /tmp/scripts/fix-theory-root-files.py | |
| wc -c /tmp/scripts/*.py | |
| - name: Run fix | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.DEPLOY_GH_TOKEN || secrets.GITHUB_TOKEN }} | |
| run: | | |
| cd /tmp/scripts | |
| python3 fix-theory-root-files.py --verbose | |
| echo "---" | |
| python3 fix-theory-root-files.py --apply --verbose |