Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 11 additions & 15 deletions .github/workflows/updateCodeJSON.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
name: Update Code.json
on:
schedule:
- cron: 0 0 1 * * # First day of every month
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths:
- "code.json"

permissions:
contents: write
pull-requests: write
issues: write

jobs:
update-code-json:
Expand All @@ -13,22 +20,11 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22'

- name: Install SCC
run: go install github.com/boyter/scc/v3@latest

- name: Update code.json
uses: DSACMS/automated-codejson-generator@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: "main"
SKIP_PR: "false"
Loading