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@v2
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 withrepo
scope.
Outputs
packages
(array of strings): List of changed stdlib packages.
License
See LICENSE.
Copyright
Copyright © 2021-2022. The Stdlib Authors.