Skip to content

A GitHub action to return the list of changed stdlib packages in a push or pull request.

License

Notifications You must be signed in to change notification settings

stdlib-js/changed-packages-action

Repository files navigation

Changed Packages Action

A GitHub action to return the list of changed stdlib packages in a push or pull request.

Example Workflow

# Workflow name:
name: Push Changes to Standalone Repositories

# Workflow triggers:
on:
  push:

# Workflow jobs:
jobs:
  assign:
    # Define the type of virtual host machine on which to run the job:
    runs-on: ubuntu-latest

    # Define the sequence of job steps...
    steps:
      # Retrieve list of changed stdlib packages in a push or pull request:
      - name: 'Retrieve list of changed stdlib packages'
        id: 'changed-packages'
        uses: stdlib-js/changed-packages-action@v3
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

      # Push changes to the standalone package repositories:
      - name: 'Push changes to standalone package repositories'
        run: |
          echo "This is a space-separated printout of the output from the previous step:"   
          echo ${{ join( fromJSON( steps.changed-packages.outputs.packages ), ' ' ) }}

Inputs

  • GITHUB_TOKEN (string) required: GitHub personal access token with repo scope.

Outputs

  • packages (array of strings): List of changed stdlib packages.

License

See LICENSE.

Copyright

Copyright © 2021-2025. The Stdlib Authors.

About

A GitHub action to return the list of changed stdlib packages in a push or pull request.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published