From 1c32fd0d8353df86c488f1fcf845f2095a4e7f01 Mon Sep 17 00:00:00 2001 From: Viorel Cojocaru Date: Tue, 26 Mar 2024 23:37:09 +0100 Subject: [PATCH] build: Update RelativeCI workflow - send stats during workflow_run - update the agent to the latest Signed-off-by: Viorel Cojocaru --- .github/workflows/node.yml | 7 +++---- .github/workflows/relative-ci.yml | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/relative-ci.yml diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index abe1dcd336a..21b08276c46 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -73,12 +73,11 @@ jobs: npm run build --if-present npm run stats --if-present - - name: Send bundle stats to RelativeCI - uses: relative-ci/agent-action@e92b0c712e5ad0a039faf1026cbe438b8e7fed16 # v2 + # Upload webpack-stats.json to use on relative-ci.yaml workflow + - name: Upload webpack stats artifact + uses: relative-ci/agent-upload-artifact-action@51f8b30e845564c5415476f67dcc7758ed1b03f2 # v1.0.3 with: webpackStatsFile: ./webpack-stats.json - key: ${{ secrets.RELATIVE_CI_KEY }} - token: ${{ secrets.GITHUB_TOKEN }} summary: permissions: diff --git a/.github/workflows/relative-ci.yml b/.github/workflows/relative-ci.yml new file mode 100644 index 00000000000..a20990132dd --- /dev/null +++ b/.github/workflows/relative-ci.yml @@ -0,0 +1,17 @@ +name: RelativeCI + +on: + workflow_run: + workflows: ["Node"] + types: + - completed + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Send bundle stats and build information to RelativeCI + uses: relative-ci/agent-action@6a11b7d7fdd6670554fba1e1a40750daa33032d7 # v2.1.10 + with: + key: ${{ secrets.RELATIVE_CI_KEY }} + token: ${{ secrets.GITHUB_TOKEN }}