Skip to content

Update Code.json

Update Code.json #3

name: Update Code.json
on:
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-code-json:
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: '1.25.2'
- name: Install SCC
run: go install github.com/boyter/scc/v3@v3.7.0
- name: "Generate an App Token"
id: generate_token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ secrets.BFD_RELEASE_APP_ID }}
private-key: ${{ secrets.BFD_RELEASE_APP_KEY }}
- name: Update code.json
uses: DSACMS/automated-codejson-generator@main
with:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
BRANCH: 'master'