Skip to content

Commit

Permalink
Update build-plugins-changed.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
longzheng committed Feb 18, 2024
1 parent 0e4f279 commit 61c6de6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-plugins-changed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
fetch-depth: 2
- uses: actions/setup-node@v4
with:
node-version: 18

Expand All @@ -25,7 +27,7 @@ jobs:
- name: Build changed plugins
run: |
# Get the list of changed directories in /plugins
changed_dirs=$(git diff --name-only HEAD~1 HEAD ./plugins | awk -F/ '{print $2}' | uniq)
changed_dirs=$(git diff --name-only HEAD^ HEAD ./plugins | awk -F/ '{print $2}' | uniq)
# Loop through each changed directory
for dir in $changed_dirs; do
Expand Down

0 comments on commit 61c6de6

Please sign in to comment.