sync_packagerefs.yml 920 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Sync Packagerefs
  2. on:
  3. schedule: # execute every 24 hours
  4. - cron: "0 */24 * * *"
  5. jobs:
  6. build:
  7. if: github.repository == 'xmake-io/xmake-repo' # only runs on root repository
  8. strategy:
  9. matrix:
  10. os: [ubuntu-latest]
  11. runs-on: ${{ matrix.os }}
  12. steps:
  13. - uses: actions/checkout@v1
  14. - uses: xmake-io/github-action-setup-xmake@v1
  15. with:
  16. xmake-version: branch@master
  17. - name: Install SSH key
  18. uses: shimataro/ssh-key-action@v2
  19. with:
  20. key: ${{ secrets.SSH_KEY }}
  21. name: id_rsa # optional
  22. known_hosts: ${{ secrets.KNOWN_HOSTS }}
  23. - name: Build artifacts for packagerefs
  24. if: ${{ github.repository }} == "xmake-io/xmake-repo"
  25. run: |
  26. git config --global user.email "[email protected]"
  27. git config --global user.name "ruki"
  28. xmake l scripts/build_artifacts.lua true