-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (38 loc) · 1.15 KB
/
update_deps.yml
File metadata and controls
44 lines (38 loc) · 1.15 KB
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
name: check_updates
on:
workflow_dispatch:
# run this monday to thursday
schedule:
- cron: "0 11 * * 1-4"
jobs:
build:
name: check updates
if: github.repository == 'denoland/deno-js-loader'
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.DENOBOT_PAT }}
- uses: denoland/setup-deno@v2
- name: Run script
env:
GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }}
GH_WORKFLOW_ACTOR: ${{ github.actor }}
run: |
git config user.email "denobot@users.noreply.github.com"
git config user.name "denobot"
deno run -A ./scripts/update-deps.ts
deno task build
deno test -A
deno run -A ./scripts/commit.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