forked from xmake-io/xmake-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) 路 920 Bytes
/
Copy pathsync_packagerefs.yml
File metadata and controls
35 lines (28 loc) 路 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Sync Packagerefs
on:
schedule: # execute every 24 hours
- cron: "0 */24 * * *"
jobs:
build:
if: github.repository == 'xmake-io/xmake-repo' # only runs on root repository
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 "waruqi@gmail.com"
git config --global user.name "ruki"
xmake l scripts/build_artifacts.lua true