From 4e85d7c15ff2b1fcb2c9249c60beea2ef6ecd53f Mon Sep 17 00:00:00 2001
From: Marvin Scham <67930021+marvinscham@users.noreply.github.com>
Date: Fri, 29 Jul 2022 21:25:10 +0200
Subject: [PATCH] Added D3
---
...pyscript-updater.yml => asset-updater.yml} | 20 +++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
rename .github/workflows/{pyscript-updater.yml => asset-updater.yml} (67%)
diff --git a/.github/workflows/pyscript-updater.yml b/.github/workflows/asset-updater.yml
similarity index 67%
rename from .github/workflows/pyscript-updater.yml
rename to .github/workflows/asset-updater.yml
index 23e30b7..f307175 100644
--- a/.github/workflows/pyscript-updater.yml
+++ b/.github/workflows/asset-updater.yml
@@ -1,4 +1,4 @@
-name: Auto PR new PyScript
+name: Auto PR updated Assets
on:
schedule: [{cron: "0 4 * * *"}]
@@ -7,7 +7,7 @@ on:
jobs:
push_to_branch_and_create_pr:
- name: Create PR for PyScript
+ name: Create PR for updated assets
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
@@ -29,13 +29,21 @@ jobs:
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 PyScript Assets
- title: Update PyScript Assets
+ commit-message: Update assets
+ title: Update assets
body: |
This is an automated PR.
- [workflow](https://github.com/marvinscham/pa-pyscript/blob/master/.github/workflows/pyscript-updater.yml).
- branch: pyscript-update
+ [workflow](https://github.com/marvinscham/pa-pyscript/blob/master/.github/workflows/asset-updater.yml).
+ branch: update-assets
branch-suffix: "random"