chore(deps): update dependency dotdc/grafana-dashboards-kubernetes to v2.5.1 #87
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 after Renovate | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
update-deno-lockfile: | |
runs-on: ubuntu-latest | |
if: github.actor == 'renovate[bot]' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: 2 | |
- name: Set up Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v2.x | |
- name: Check if cdk8s/deno.json has changed | |
id: check_changed_files | |
run: | | |
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | grep -q 'cdk8s/deno.json'; then echo "file_changed=true" >> $GITHUB_ENV; else echo "file_changed=false" >> $GITHUB_ENV; fi | |
- name: Update Deno lockfile | |
if: env.file_changed == 'true' | |
run: cd cdk8s && deno cache --lock=deno.lock src/app.ts | |
# - name: Update imports | |
# run: cd cdk8s && ./update-imports.ts | |
- name: Commit and push changes | |
if: env.file_changed == 'true' | |
run: | | |
git config --global user.name 'renovate-update' | |
git config --global user.email 'github@sjer.red' | |
git add . | |
git commit --amend --no-edit | |
git push --force |