You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1003 B
34 lines
1003 B
4 years ago
|
name: automatically-update-test-links
|
||
|
on:
|
||
|
schedule:
|
||
|
- cron: "0 13 * * 1"
|
||
|
jobs:
|
||
|
createPullRequest:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- uses: actions/setup-node@v2
|
||
|
- name: Make changes to pull request
|
||
|
run: |
|
||
|
npm ci
|
||
|
node monitor-bb.js
|
||
|
node monitor-bb-sd.js
|
||
|
node monitor-rpi.js
|
||
|
node monitor-tinker.js
|
||
|
node monitor-ub-server.js
|
||
|
working-directory: scripts/linkbot
|
||
|
|
||
|
- name: Create Pull Request
|
||
|
id: cpr
|
||
|
uses: peter-evans/create-pull-request@v3
|
||
|
with:
|
||
|
title: "Image-Bot: New images available"
|
||
|
body: |
|
||
|
New images are available for update
|
||
|
commit-message: Image-Bot - Image updates
|
||
|
|
||
|
- name: Check outputs
|
||
|
run: |
|
||
|
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
||
|
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|