Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check

GitHub Action

RushJS Identify Changed Projects Helper

v1.0.5

RushJS Identify Changed Projects Helper

check

RushJS Identify Changed Projects Helper

Github action for detecting changed projects using rush change files

Installation

Copy and paste the following snippet into your .yml file.

              

- name: RushJS Identify Changed Projects Helper

uses: advancedcsg-open/[email protected]

Learn more about this action in advancedcsg-open/actions-rush-changed-projects

Choose a version

Rush Changed Projects Action

JavaScript Style Guide javscript-action status Quality Gate Status


Used to in combination with rush change files to detect changes.

Usage

Pre-requisites


This action requires rush version 5.47.0 or newer.

Inputs


exclude-dependant-projects

Determines whether to exclude projects that depend on projects identified via rush change. A boolean value of true or false.

By default this is set to false and dependant projects are included.

version-policy

Filters the projects using given version policy.

By default all the changed projects will be included.

working-directory

Specify the root directory for the rush configuration

By default repository root will be considered.

Outputs


changed-projects

A list of the changed projects. Contains the rush.json packageName of each project.

Example


# .github/workflows/rush.yml
name: Rush Changed Projects
on:
  push:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Code
        uses: actions/checkout@v2
      - name: Rush Install
        uses: advancedcsg-open/actions-rush
      - name: Rush Changed Projects
        uses: advancedcsg-open/actions-rush-changed-projects
        id: rush-changed-projects
      - name: Display Changes
        run: |
          for PACKAGE in $(echo ${{ steps.rush-changed-projects.outputs.changed-projects}} | jq -r .[])
            do
              echo $PACKAGE
            done

License

actions-rush-changed-projects is licensed under the MIT License. See the LICENSE file for more info.

FOSSA Status