Update Meta Depot #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Meta Depot | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| allow-full-resync: | |
| description: Allow Empty Depot | |
| type: boolean | |
| permissions: | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - run: npm ci | |
| - name: Get OIDC tokens | |
| id: oidc | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| core.setOutput('meta-api-token', await core.getIDToken('neoforge-meta-api')) | |
| core.setOutput('depot-manager-token', await core.getIDToken('https://depot-manager.neoforged.net')) | |
| - name: Update Meta Depot | |
| run: node index.ts ${{ inputs.allow-full-resync && '--full-resync' || '' }} | |
| env: | |
| META_API_TOKEN: "${{ steps.oidc.outputs.meta-api-token }}" | |
| DEPOT_MANAGER_TOKEN: "${{ steps.oidc.outputs.depot-manager-token }}" | |
| DEPOT_MANAGER_BASE_URL: https://depot-manager.neoforged.net/meta/ | |
| DEPOT_BASE_URL: https://depot.neoforged.net/meta/ |