Sync Packagerefs #18
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
name: Sync Packagerefs | |
on: | |
schedule: # execute every 24 hours | |
- cron: "0 */24 * * *" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: xmake-io/github-action-setup-xmake@v1 | |
with: | |
xmake-version: branch@master | |
- name: Install SSH key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_KEY }} | |
name: id_rsa # optional | |
known_hosts: ${{ secrets.KNOWN_HOSTS }} | |
- name: Build artifacts for packagerefs | |
if: ${{ github.repository }} == "xmake-io/xmake-repo" | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "ruki" | |
xmake l scripts/build_artifacts.lua true | |