From 0a4d8b8a93becb23d4060f4e6005d85dc53b44ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Broks=20Randolfs=20Gail=C4=ABtis?= Date: Mon, 3 Mar 2025 11:26:04 +0200 Subject: [PATCH] Use version 1 of nx-set-shas doesn't rely on github --- .gitea/workflows/ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 199cfc9..7e8926f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -18,6 +18,20 @@ jobs: with: fetch-depth: 0 + - name: Derive appropriate SHAs for base and head for `nx affected` commands + uses: nrwl/nx-set-shas@v1 + # with: + # main-branch-name: 'main' + # tag-match-pattern: '' + # set-environment-variables-for-job: true + # error-on-no-matching-tags: '' + + - name: Print SHAs + run: | + echo "BASE: ${{ env.NX_BASE }}" + echo "HEAD: ${{ env.NX_HEAD }}" + + # This enables task distribution via Nx Cloud # Run this command as early as possible, before dependencies are installed # Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun @@ -31,8 +45,6 @@ jobs: cache: 'npm' - run: npm ci --legacy-peer-deps - - uses: daotl/action-nx-set-shas-gitea@main - # - uses: nrwl/nx-set-shas@v4 # Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud # - run: npx nx-cloud record -- echo Hello World