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.2

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


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

Usage

Pre-requisites


This action requires rush version 5.47.0 or newer.

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.