Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (20 loc) · 689 Bytes

EXAMPLES.md

File metadata and controls

25 lines (20 loc) · 689 Bytes

chill-viking/is-nx-affected examples

Basic example

jobs:
  use_github_action:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0 # Required to be able to compare base in Nx

      - run: npm ci

      - id: check_affected
        uses: chill-viking/[email protected]
        with:
          project: project-name # Required, the Nx project name you're targeting
          base: origin/main     # Optional, the base branch or tag to compare against. Defaults to 'origin/main'

      - if: steps.check_affected.outputs.is-affected == 'true'
        run: |
          echo "Create new release of project-name"