-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (32 loc) · 986 Bytes
/
check_updates.yml
File metadata and controls
37 lines (32 loc) · 986 Bytes
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
name: check_updates
on:
workflow_dispatch:
schedule:
# do this once per day
- cron: "0 7 * * *"
jobs:
build:
name: check updates
if: github.repository == 'dprint/dprint-plugin-sql'
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Clone repository
uses: actions/checkout@v6
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 "dprintbot@users.noreply.github.com"
git config user.name "dprintbot"
deno run -A ./scripts/update.ts
# This is necessary to prevent GH automatically disabling 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