Skip to content

Commit

Permalink
Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leonasdev committed Feb 9, 2024
1 parent 7cd5e67 commit 2678aa6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/cross-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ jobs:
- name: Sync to other branches
run: |
sync_files_from() {
[ "$1" == "windows" ] && WATCHED_PATHS=${WINDOWS_SYNC_PATHS} || WATCHED_PATHS=${ALL_PATHS}
[ "$branch" == "windows" ] && WATCHED_PATHS=${WINDOWS_SYNC_PATHS} || WATCHED_PATHS=${ALL_PATHS}
echo "${WATCHED_PATHS}" | while read -r path; do
echo "${WATCHED_PATHS}" | while read -r path; do
if [ -z "$path" ]; then
continue # Skip empty lines
fi
echo "Syncing $path"
git checkout $1 -- "${path}"
if [ $? -eq 0 ]; then
Expand All @@ -60,6 +63,9 @@ jobs:
echo -e "Changed files: $CHANGED_FILES\n"
echo "${SYNC_BRANCHES}" | while read -r branch; do
if [ -z "$branch" ]; then
continue # Skip empty lines
fi
if [ "$branch" == "${{ github.ref_name }}" ]; then
echo "Skipping branch: $branch"
continue
Expand Down

0 comments on commit 2678aa6

Please sign in to comment.