From 94ed7bf2469d1dd802f729e1fea73fe907a809e8 Mon Sep 17 00:00:00 2001
From: Marvin Scham <67930021+marvinscham@users.noreply.github.com>
Date: Wed, 27 Jul 2022 06:58:21 +0200
Subject: [PATCH] Added css to dl, added schedule, rename
---
...pt-js-updater.yml => pyscript-updater.yml} | 24 ++++++++++++-------
1 file changed, 16 insertions(+), 8 deletions(-)
rename .github/workflows/{pyscript-js-updater.yml => pyscript-updater.yml} (55%)
diff --git a/.github/workflows/pyscript-js-updater.yml b/.github/workflows/pyscript-updater.yml
similarity index 55%
rename from .github/workflows/pyscript-js-updater.yml
rename to .github/workflows/pyscript-updater.yml
index ae0adfd..23e30b7 100644
--- a/.github/workflows/pyscript-js-updater.yml
+++ b/.github/workflows/pyscript-updater.yml
@@ -1,33 +1,41 @@
-name: Auto PR updated PyScript
+name: Auto PR new PyScript
on:
- # schedule: [{cron: "0 4 * * *"}]
+ schedule: [{cron: "0 4 * * *"}]
workflow_dispatch:
push: {branches: ["main"]}
jobs:
push_to_branch_and_create_pr:
- name: Create PR for JS
+ name: Create PR for PyScript
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
name: Check out current commit
- uses: suisei-cn/actions-download-file@v1
- id: downloadfile
+ 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
+
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4.0.4
with:
- commit-message: Update PyScript JS
- title: Update PyScript JS
+ commit-message: Update PyScript Assets
+ title: Update PyScript Assets
body: |
This is an automated PR.
- [workflow](https://github.com/marvinscham/pa-pyscript/blob/master/.github/workflows/pyscript-js-updater.yml).
- branch: js-update
+ [workflow](https://github.com/marvinscham/pa-pyscript/blob/master/.github/workflows/pyscript-updater.yml).
+ branch: pyscript-update
branch-suffix: "random"