Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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

About

Github action for detecting changed projects using rush change files

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages