Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
831 bytes
|
Line | |
---|
1 | name: Nightly Sync of content
|
---|
2 |
|
---|
3 | on:
|
---|
4 | schedule:
|
---|
5 | - cron: '0 3 * * *' # run daily at 3am
|
---|
6 |
|
---|
7 | jobs:
|
---|
8 | checks:
|
---|
9 | runs-on: ubuntu-latest
|
---|
10 | steps:
|
---|
11 | - uses: actions/checkout@v2
|
---|
12 |
|
---|
13 | - uses: actions/setup-node@v1
|
---|
14 | with:
|
---|
15 | node-version: "12.x"
|
---|
16 |
|
---|
17 | - name: Install
|
---|
18 | run: npm ci
|
---|
19 |
|
---|
20 | - name: Collect latest releases
|
---|
21 | run: npm run build
|
---|
22 |
|
---|
23 | - name: Commit changes
|
---|
24 | uses: EndBug/add-and-commit@v4
|
---|
25 | with:
|
---|
26 | author_name: GitHub Action
|
---|
27 | author_email: action@github.com
|
---|
28 | message: "feat: Nightly Sync"
|
---|
29 |
|
---|
30 | - name: Push changes
|
---|
31 | # Only run this on the main nodejs repo and not forks
|
---|
32 | if: github.repository == 'chicoxyzzy/node-releases'
|
---|
33 | uses: ad-m/github-push-action@v0.5.0
|
---|
34 | with:
|
---|
35 | github_token: ${{ secrets.GITHUB_TOKEN }}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.