-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 999 Bytes
/
update_repo.yaml
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
name: Update Repo
on:
schedule:
- cron: '0 */12 * * *'
workflow_dispatch:
repository_dispatch:
types: [new-release]
jobs:
update:
name: Update Repo
runs-on: ubuntu-latest
steps:
- uses: denoland/setup-deno@v1
with:
deno-version: 1.x
- uses: actions/checkout@v3
- name: Update Repo
run: deno run --allow-net=api.github.com,github.com,objects.githubusercontent.com --allow-write=repo.json main.ts
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v13
id: verify-changed-files
with:
files: repo.json
- name: Commit files
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: EndBug/add-and-commit@v9
with:
message: Update Repo
default_author: github_actions
- name: Push changes
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: ad-m/github-push-action@master