-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.19 KB
/
update_lockfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Update deno.lock
on:
push:
branches:
- "renovate/**"
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v2.x
- uses: actions/cache/restore@v4
id: cache
with:
path: |
~/.cache/deno
_cache
key: Default Cache
- name: Update lockfile
run: |
rm deno.lock
deno task lume
- name: Delete previous cache
if: ${{ steps.cache.outputs.cache-hit }}
continue-on-error: true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh extension install actions/gh-actions-cache
gh actions-cache delete "Default Cache" --confirm
- uses: actions/cache/save@v4
with:
path: |
~/.cache/deno
_cache
key: Default Cache
- name: Commit changes
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Update deno.lock"
git push