ci: add workflow to update deno.lock on PR (#1015)
This commit is contained in:
1 parent
58466492e9
commit
c6c271470b
1 file changed
+31
@@ -0,0 +1,31 @@
|
||||
name: Update Deno Lock
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths: ["deno.json"]
|
||||
|
||||
jobs:
|
||||
deno-lock:
|
||||
name: Update Deno lock
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
|
||||
- name: Setup Deno
|
||||
uses: nekowinston/setup-deno@main
|
||||
with:
|
||||
deno-version: v1.x
|
||||
|
||||
- name: Regenerate Deno lock
|
||||
run: deno cache --reload **/*.ts --lock-write
|
||||
|
||||
- name: Commit & Push
|
||||
uses: EndBug/add-and-commit@v9
|
||||
with:
|
||||
message: "chore: regenerate `deno.lock`"
|
||||
default_author: github_actions
|
||||
push: true
|
||||
Reference in new issue
Block a user