From f452d4b4d9bf503f3827743cb29fbf85932388ed Mon Sep 17 00:00:00 2001 From: Qingyu Wang <40660121+colinaaa@users.noreply.github.com> Date: Fri, 9 May 2025 00:26:48 +0800 Subject: [PATCH 1/2] ci: use different keys for different projects --- .github/workflows/relative-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/relative-ci.yml b/.github/workflows/relative-ci.yml index 9605b4728a..9762d47dd4 100644 --- a/.github/workflows/relative-ci.yml +++ b/.github/workflows/relative-ci.yml @@ -17,8 +17,10 @@ jobs: project: - path: ./examples/react name: example-react + key: RELATIVE_CI_PROJECT_EXAMPLES_REACT_KEY - path: ./packages/web-platform/web-explorer name: web-explorer + key: RELATIVE_CI_PROJECT_WEB_EXPLORER_KEY runs-on: lynx-ubuntu-24.04-medium name: Upload ${{ matrix.project.name }} steps: @@ -26,5 +28,5 @@ jobs: uses: relative-ci/agent-action@38328454d6a23942175eba485fca4fbb807b1f03 #v2 with: artifactName: ${{ matrix.project.name }}-relative-ci-artifacts - key: ${{ secrets.RELATIVE_CI_KEY }} + key: ${{ secrets[matrix.project.key] }} token: ${{ secrets.GITHUB_TOKEN }} From 4cae120600dc35051996014e235f691b259c7ea4 Mon Sep 17 00:00:00 2001 From: Qingyu Wang <40660121+colinaaa@users.noreply.github.com> Date: Fri, 9 May 2025 00:33:38 +0800 Subject: [PATCH 2/2] ci: use env instead of secrets --- .github/workflows/relative-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/relative-ci.yml b/.github/workflows/relative-ci.yml index 9762d47dd4..eda62a716f 100644 --- a/.github/workflows/relative-ci.yml +++ b/.github/workflows/relative-ci.yml @@ -4,7 +4,7 @@ on: # zizmor: ignore[dangerous-triggers] This is a dangerous trigger, but it's ok because we're not using it to trigger other workflows # See: https://relative-ci.com/documentation/setup/agent/github-action/#workflow_run-event workflow_run: - workflows: ["Bundle Analysis", "Deploy", "Test"] + workflows: ["Bundle Analysis"] types: - completed @@ -23,10 +23,13 @@ jobs: key: RELATIVE_CI_PROJECT_WEB_EXPLORER_KEY runs-on: lynx-ubuntu-24.04-medium name: Upload ${{ matrix.project.name }} + env: + RELATIVE_CI_PROJECT_EXAMPLES_REACT_KEY: ${{ secrets.RELATIVE_CI_PROJECT_EXAMPLES_REACT_KEY }} + RELATIVE_CI_PROJECT_WEB_EXPLORER_KEY: ${{ secrets.RELATIVE_CI_PROJECT_WEB_EXPLORER_KEY }} steps: - name: Send bundle stats and build information to RelativeCI - ${{ matrix.project.name }} uses: relative-ci/agent-action@38328454d6a23942175eba485fca4fbb807b1f03 #v2 with: artifactName: ${{ matrix.project.name }}-relative-ci-artifacts - key: ${{ secrets[matrix.project.key] }} + key: ${{ env[matrix.project.key] }} token: ${{ secrets.GITHUB_TOKEN }}