Skip to content

Update _worker.js

Update _worker.js #11

Workflow file for this run

name: zip_flows # 工作流程的名称
on:
workflow_dispatch: # 手动触发
push:
paths:
- '_worker.js' # 当 _worker.js 文件发生变动时触发
permissions:
contents: write
jobs:
package-and-commit:
runs-on: ubuntu-latest # 运行环境,这里使用最新版本的 Ubuntu
steps:
- name: Checkout Repository # 检出代码
uses: actions/checkout@v2
- name: Zip the worker file # 将 _worker.js 文件打包成 worker.js.zip
run: zip _worker.js.zip _worker.js
- name: Commit and push the packaged file # 提交并推送打包后的文件
uses: EndBug/add-and-commit@v7
with:
add: '_worker.js.zip'
message: 'Automatically package and commit _worker.js.zip'
author_name: github-actions[bot]
author_email: actions[bot]@users.noreply.github.com
token: ${{ secrets.GH_TOKEN }}