Use version 1 of nx-set-shas
All checks were successful
CI / main (push) Successful in 13m1s

doesn't rely on github
This commit is contained in:
Broks Randolfs Gailītis 2025-03-03 11:26:04 +02:00
parent 771bf6e7c9
commit 0a4d8b8a93

View File

@ -18,6 +18,20 @@ jobs:
with: with:
fetch-depth: 0 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 # This enables task distribution via Nx Cloud
# Run this command as early as possible, before dependencies are installed # 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 # Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
@ -31,8 +45,6 @@ jobs:
cache: 'npm' cache: 'npm'
- run: npm ci --legacy-peer-deps - 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 # Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud
# - run: npx nx-cloud record -- echo Hello World # - run: npx nx-cloud record -- echo Hello World