Skip to content

Commit

Permalink
ci: update version workflow to copy sample files
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 committed Oct 22, 2024
1 parent 01104b7 commit 9a33849
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,20 @@ 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
run: |
mkdir -p ./src/Packages/Passport/Samples~
rm -rf ./src/Packages/Passport/Samples~/*
- 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/
- uses: gr2m/create-or-update-pull-request-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 0 additions & 1 deletion src/Packages/Passport/Samples~/SamplesScenesScripts/Scenes

This file was deleted.

This file was deleted.

0 comments on commit 9a33849

Please sign in to comment.