main.yml 959 B

12345678910111213141516171819202122232425262728293031323334353637
  1. on:
  2. workflow_dispatch:
  3. schedule:
  4. - cron: "0 2 * * 5"
  5. jobs:
  6. update-symbols:
  7. permissions:
  8. contents: write
  9. runs-on: ubuntu-20.04-4core
  10. strategy:
  11. fail-fast: false
  12. steps:
  13. - name: free disk space
  14. run: |
  15. sudo swapoff -a
  16. sudo rm -f /swapfile
  17. sudo apt clean
  18. docker rmi $(docker image ls -aq)
  19. df -h
  20. - uses: actions/checkout@v3
  21. - name: Set up Python
  22. uses: actions/setup-python@v4
  23. with:
  24. python-version: 3.11
  25. - name: Install dependencies
  26. run: |
  27. python -m pip install --upgrade pip
  28. pip install -r update/requirements.txt
  29. - name: Run Update Script
  30. working-directory: ./update
  31. run: |
  32. python update_symbols.py
  33. - name: commit
  34. run: |
  35. git add .
  36. git diff --staged --quiet || git -c user.name='GitHub Actions Bot' -c user.email='<>' commit -m 'Update Symbols'
  37. git push origin master