-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to use new actions-utils that is aware of ALL_CHANGED_FILES (#28)
## Summary: See Khan/actions-utils#14 ## Test plan: I updated the workflow to set up the ALL_CHANGED_FILES variable. Our other workflows that use eslint-action will want to add those setup steps as well. Author: jaredly Reviewers: jeresig, jaredly Required Reviewers: Approved by: jeresig Checks: ❌ lint_and_unit, ✅ autofix Pull request URL: #28
- Loading branch information
Showing
7 changed files
with
198 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,26 @@ | ||
|
||
setup: | ||
checkout: | ||
- uses: actions/checkout@v1 | ||
name: get the repo | ||
- uses: actions/checkout@v2 | ||
yarn: | ||
setup: checkout | ||
steps: | ||
- run: yarn | ||
|
||
# This gets the list of files that changed in the current pull-request | ||
# and puts then onto the ALL_CHANGED_FILES env variable, which several | ||
# of our actions will use. | ||
changed-files: | ||
steps: | ||
- name: Get All Changed Files | ||
uses: jaredly/[email protected] | ||
id: changed | ||
with: | ||
format: 'json' # robust to filenames with spaces | ||
absolute: true # our tooling expects absolute paths | ||
|
||
# Now we put it on the environment so that it can be picked up by | ||
# anything that uses actions-utils (e.g. eslint-action, jest-action, etc.) | ||
- uses: allenevans/[email protected] | ||
with: | ||
ALL_CHANGED_FILES: '${{ steps.changed.outputs.added_modified }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.