Skip to content

Commit 96152f0

Browse files
authored
Fix sync workflow for filtering files (#904)
* Fix changed files filter * Simplify * Try to fix multi-line syntax
1 parent 8239e24 commit 96152f0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/sync_lab_release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,21 @@ jobs:
105105
yarn clean_env_installer && conda-lock install --no-validate-platform --prefix ./env_installer/jlab_server ./env_installer/conda-osx-arm64.lock
106106
yarn update_binary_sign_list --platform osx-arm64
107107
108+
- name: Get changed files
109+
id: changed-files
110+
run: |
111+
git diff --name-only > changed_files.txt
112+
echo "files<<EOF" >> $GITHUB_OUTPUT
113+
cat changed_files.txt >> $GITHUB_OUTPUT
114+
echo "EOF" >> $GITHUB_OUTPUT
115+
108116
- name: Upload updated repo as artifact
109117
uses: actions/upload-artifact@v4
110118
with:
111119
name: updated-repo
112120
path: |
113-
$(git diff --name-only)
121+
${{ steps.changed-files.outputs.files }}
122+
if-no-files-found: error
114123

115124
push-and-pr:
116125
needs: [check-latest-version, update-files]

0 commit comments

Comments
 (0)