Skip to content

check_updates

check_updates #468

Workflow file for this run

name: check_updates
on:
workflow_dispatch:
schedule:
# do this three times a week
- cron: "0 7 * * 1,3,5"
jobs:
build:
name: check updates
if: github.repository == 'dprint/dprint-plugin-prettier'
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_DPRINTBOT_PAT }}
- uses: denoland/setup-deno@v2
- uses: dsherret/rust-toolchain-file@v1
- name: Run script
run: |
git config user.email "[email protected]"
git config user.name "dprintbot"
deno run -A ./scripts/update.ts
# This is necessary to prevent GH automatically dsiabling this workflow after 60 days.
workflow-keepalive:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: liskin/gh-workflow-keepalive@f72ff1a1336129f29bf0166c0fd0ca6cf1bcb38c