Skip to content

Commit 0a4d001

Browse files
Token via Osscar the OSS cat (our very own GitHub app). (#38)
* Workflow update. Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com> * Remove GRAPHQL_TOKEN from the `env` 🤦 * (Temporarily) delete concurency group * Revert temporary disabling of the concurrency rules. Also add a timeout. --------- Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>
1 parent 7fb29c8 commit 0a4d001

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/nextjs.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ permissions:
1515
contents: read
1616
pages: write
1717
id-token: write
18-
env:
19-
GRAPHQL_TOKEN: ${{ secrets.GRAPHQL_TOKEN }}
20-
ORGANIZATION_NAME: ${{ vars.ORGANIZATION_NAME }}
2118
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2219
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2320
concurrency:
@@ -27,7 +24,13 @@ jobs:
2724
# Build job
2825
build:
2926
runs-on: ubuntu-latest
27+
timeout-minutes: 120
3028
steps:
29+
- uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
30+
id: generate_token
31+
with:
32+
app-id: ${{ secrets.APP_ID }}
33+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
3134
- name: Checkout
3235
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
3336
- name: Setup Node
@@ -37,18 +40,15 @@ jobs:
3740
- name: Get current date
3841
id: date
3942
run: echo "DATE=$(date +'%Y-%m')" >> $GITHUB_ENV
40-
- name: Restore conda downloads cache
41-
uses: actions/cache@v4
42-
with:
43-
path: |
44-
~/.dashboard
45-
key: conda-download-cache-${{ env.DATE }}
4643
- name: Collect metrics and save output
4744
id: metrics
4845
run: |
4946
cd backend
5047
npm i
5148
npm run dev
49+
env:
50+
ORGANIZATION_NAME: ${{ vars.ORGANIZATION_NAME }}
51+
GRAPHQL_TOKEN: ${{ steps.generate_token.outputs.token }}
5252
- name: Detect package manager
5353
id: detect-package-manager
5454
run: |

0 commit comments

Comments
 (0)