-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ebb0ba
commit 7297675
Showing
1 changed file
with
0 additions
and
16 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 |
---|---|---|
|
@@ -73,22 +73,6 @@ jobs: | |
- name: "Checkout" | ||
uses: actions/checkout@v2 | ||
|
||
- name: "Check changed files" | ||
shell: pwsh | ||
id: check_file_changed | ||
run: | | ||
# Diff HEAD with the previous commit | ||
$diff = git diff --name-only HEAD^ HEAD | ||
# Check if a file under gear-ui has changed (added, modified, deleted) | ||
$SourceDiffGearUI = $diff | Where-Object { $_ -match '^utils/gear-ui/' } | ||
$HasDiffGearUI = $SourceDiffGearUI.Length -gt 0 | ||
$SourceDiffVaraUI = $diff | Where-Object { $_ -match '^utils/vara-ui/' } | ||
$HasDiffVaraUI = $SourceDiffVaraUI.Length -gt 0 | ||
# Set the output | ||
Write-Host "::set-output name=gearui_changed::$HasDiffGearUI" | ||
Write-Host "::set-output name=varaui_changed::$HasDiffVaraUI" | ||
- name: Use node 18.x | ||
uses: actions/[email protected] | ||
with: | ||
|