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