-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 976 Bytes
/
update.yml
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: Update Versions
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
jobs:
Update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Run script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
deno run \
--allow-read=.env,.env.defaults,versions.json \
--allow-write=.env,.env.defaults,versions.json,README.md \
--allow-env=GITHUB_TOKEN \
--allow-net=api.github.com,raw.githubusercontent.com \
index.ts
- name: Update repo
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update to latest versions
commit_user_name: actions-user
commit_user_email: [email protected]
commit_author: actions-user <[email protected]>