Added css to dl, added schedule, rename
This commit is contained in:
@@ -1,33 +1,41 @@
|
|||||||
name: Auto PR updated PyScript
|
name: Auto PR new PyScript
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# schedule: [{cron: "0 4 * * *"}]
|
schedule: [{cron: "0 4 * * *"}]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push: {branches: ["main"]}
|
push: {branches: ["main"]}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
push_to_branch_and_create_pr:
|
push_to_branch_and_create_pr:
|
||||||
name: Create PR for JS
|
name: Create PR for PyScript
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
name: Check out current commit
|
name: Check out current commit
|
||||||
|
|
||||||
- uses: suisei-cn/actions-download-file@v1
|
- uses: suisei-cn/actions-download-file@v1
|
||||||
id: downloadfile
|
id: pyscript-js
|
||||||
name: Download JS file
|
name: Download JS file
|
||||||
with:
|
with:
|
||||||
url: (https://pyscript.net/alpha/pyscript.js)
|
url: (https://pyscript.net/alpha/pyscript.js)
|
||||||
target: assets
|
target: assets
|
||||||
auto-match: true
|
auto-match: true
|
||||||
|
|
||||||
|
- uses: suisei-cn/actions-download-file@v1
|
||||||
|
id: pyscript-css
|
||||||
|
name: Download CSS file
|
||||||
|
with:
|
||||||
|
url: (https://pyscript.net/alpha/pyscript.css)
|
||||||
|
target: assets
|
||||||
|
auto-match: true
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v4.0.4
|
uses: peter-evans/create-pull-request@v4.0.4
|
||||||
with:
|
with:
|
||||||
commit-message: Update PyScript JS
|
commit-message: Update PyScript Assets
|
||||||
title: Update PyScript JS
|
title: Update PyScript Assets
|
||||||
body: |
|
body: |
|
||||||
This is an automated PR.
|
This is an automated PR.
|
||||||
<sub>[workflow](https://github.com/marvinscham/pa-pyscript/blob/master/.github/workflows/pyscript-js-updater.yml).</sub>
|
<sub>[workflow](https://github.com/marvinscham/pa-pyscript/blob/master/.github/workflows/pyscript-updater.yml).</sub>
|
||||||
branch: js-update
|
branch: pyscript-update
|
||||||
branch-suffix: "random"
|
branch-suffix: "random"
|
||||||
Reference in New Issue
Block a user