Merge branch 'main' into renovate/tree-sitter-0.x #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |