From 231942870952c93922f41e214cc79f568f33d7bc Mon Sep 17 00:00:00 2001 From: Christopher Serr Date: Mon, 15 Jul 2024 21:37:30 +0200 Subject: [PATCH] Fix CI Turns out it's not quite right yet. --- .github/workflows/ci.yml | 5 ++++- webpack.config.js | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1aa2f391..55aba5fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,8 +83,9 @@ jobs: - name: Install binaryen if: github.repository == 'LiveSplit/LiveSplitOne' && github.ref == 'refs/heads/master' + shell: bash run: | - cd ~/.cargo/bin + cd ${{ matrix.cargo_bin }} tar -xzf binaryen-*-${{ matrix.binaryen }}.tar.gz mv binaryen*/bin/wasm* . @@ -128,6 +129,8 @@ jobs: librsvg2-dev - name: Build Core + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: npm run build:core:deploy - name: Run eslint (Web) diff --git a/webpack.config.js b/webpack.config.js index 8d1fdc9c..7af0e878 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -44,7 +44,11 @@ function parseChangelog() { export default async (env, argv) => { const getContributorsForRepo = async (repoName) => { - const contributorsData = await fetch(`https://api.github.com/repos/LiveSplit/${repoName}/contributors`); + const contributorsData = await fetch(`https://api.github.com/repos/LiveSplit/${repoName}/contributors`, { + headers: { + "Authorization": env.GITHUB_TOKEN ? `Bearer ${env.GITHUB_TOKEN}` : undefined, + }, + }); return contributorsData.json(); }