From a1277efa931b89d045e5cce24fb221d43dcd6693 Mon Sep 17 00:00:00 2001 From: Natalia Luzuriaga Date: Fri, 7 Nov 2025 10:55:50 -0800 Subject: [PATCH] Update updateCodeJSON.yml --- .github/workflows/updateCodeJSON.yml | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/updateCodeJSON.yml b/.github/workflows/updateCodeJSON.yml index fff52c6..036987f 100644 --- a/.github/workflows/updateCodeJSON.yml +++ b/.github/workflows/updateCodeJSON.yml @@ -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: @@ -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 }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: "main" + SKIP_PR: "false"