Skip to content

Commit 9356745

Browse files
Merge pull request #4 from DSACMS/natalialuzuriaga-patch-1
Workflows: Update updateCodeJSON.yml
2 parents d13e762 + 9e1958c commit 9356745

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed
Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
name: Update Code.json
22
on:
3+
schedule:
4+
- cron: 0 0 1 * * # First day of every month
35
workflow_dispatch:
6+
pull_request:
7+
types: [opened, synchronize]
8+
paths:
9+
- "code.json"
410

511
permissions:
612
contents: write
713
pull-requests: write
14+
issues: write
815

916
jobs:
1017
update-code-json:
@@ -13,22 +20,11 @@ jobs:
1320
- name: Checkout Repository
1421
uses: actions/checkout@v4
1522
with:
16-
fetch-depth: 0
17-
18-
- name: Setup Node.js
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: '20'
23+
fetch-depth: 0
2224

23-
- name: Setup Go
24-
uses: actions/setup-go@v5
25-
with:
26-
go-version: '1.22'
27-
28-
- name: Install SCC
29-
run: go install github.com/boyter/scc/v3@latest
30-
3125
- name: Update code.json
3226
uses: DSACMS/automated-codejson-generator@main
3327
with:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
BRANCH: "main"
30+
SKIP_PR: "false"

0 commit comments

Comments
 (0)