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"