From 49607173e0efa16dba08536c519b6b112ca8bf11 Mon Sep 17 00:00:00 2001 From: Marvin Scham <67930021+marvinscham@users.noreply.github.com> Date: Wed, 27 Jul 2022 06:51:39 +0200 Subject: [PATCH] Create pyscript-js-updater.yml --- .github/workflows/pyscript-js-updater.yml | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/pyscript-js-updater.yml diff --git a/.github/workflows/pyscript-js-updater.yml b/.github/workflows/pyscript-js-updater.yml new file mode 100644 index 0000000..da22135 --- /dev/null +++ b/.github/workflows/pyscript-js-updater.yml @@ -0,0 +1,33 @@ +name: Auto PR updated PyScript + +on: + # schedule: [{cron: "0 4 * * *"}] + workflow_dispatch: + push: {branches: ["main"]} + +jobs: + push_to_branch_and_create_pr: + name: Create PR for JS + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + name: Check out current commit + + - uses: suisei-cn/actions-download-file@v1 + id: downloadfile + name: Download JS file + with: + url: https://pyscript.net/alpha/pyscript.js + 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 + body: | + This is an automated PR. + [workflow](https://github.com/marvinscham/pa-pyscript/blob/master/.github/workflows/pyscript-js-updater.yml). + branch: js-update + branch-suffix: "random"