Skip to content

Commit

Permalink
ci: fix copy sample scenes and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 committed Oct 25, 2024
1 parent b136ff4 commit 1fadbab
Show file tree
Hide file tree
Showing 19 changed files with 5 additions and 31,373 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,19 @@ jobs:
sed -i -E "s/[0-9]+\.[0-9]+\.[0-9]+/$NEW_VERSION/g" $FILE
echo "Updated SDK version in SdkVersionInfoHelpers.cs to $NEW_VERSION"
- name: Ensure Passport Samples~ directory exists and clear contents
- name: Ensure Passport Samples~/SamplesScenesScripts directory exists and clear contents
run: |
mkdir -p ./src/Packages/Passport/Samples~
rm -rf ./src/Packages/Passport/Samples~/*
mkdir -p ./src/Packages/Passport/Samples~/SamplesScenesScripts
rm -rf ./src/Packages/Passport/Samples~/SamplesScenesScripts/*
- name: Install rsync
run: sudo apt-get install -y rsync

- name: Copy sample scenes and scripts to Passport package Samples~
id: copy_sample_scenes_and_scripts
run: |
rsync -av --exclude='*.meta' ./sample/Assets/Scenes/ ./src/Packages/Passport/Samples~/Scenes/
rsync -av --exclude='*.meta' ./sample/Assets/Scripts/ ./src/Packages/Passport/Samples~/Scripts/
rsync -av --exclude='*.meta' ./sample/Assets/Scenes/ ./src/Packages/Passport/Samples~/SamplesScenesScripts/Scenes/
rsync -av --exclude='*.meta' ./sample/Assets/Scripts/ ./src/Packages/Passport/Samples~/SamplesScenesScripts/Scripts/
- uses: gr2m/create-or-update-pull-request-action@v1
env:
Expand Down
Loading

0 comments on commit 1fadbab

Please sign in to comment.