Skip to content

Commit 1f68f72

Browse files
committed
メンテナンス用ファイル同期スクリプトを追加
1 parent 3ae6696 commit 1f68f72

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/scripts/sync_scripts.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#/bin/bash -eu
2+
3+
SRC_DIR=$(cd $(dirname ${BASH_SOURCE:-$0})/../../; pwd)
4+
echo "Run sync script in $SRC_DIR"
5+
rsync -av --delete $SRC_DIR/MobileRobotUITutorialProject/Assets/Scripts/ $SRC_DIR/UnityScripts/Scripts
6+
rsync -av --delete $SRC_DIR/MobileRobotUITutorialProject/Assets/OdometryViewer/ $SRC_DIR/UnityScripts/OdometryViewer
7+
rsync -av --delete $SRC_DIR/MobileRobotUITutorialProject/Assets/PointCloud/ $SRC_DIR/UnityScripts/PointCloud
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Check for the tutorial update
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "MobileRobotUITutorialProject/**"
7+
- "UnityScripts/**"
8+
9+
jobs:
10+
check-tutorial-files:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: File sync
16+
run: |
17+
./.github/scripts/sync_scripts.sh
18+
git status | grep "working tree clean" && exit 0 || git status; exit 1;

0 commit comments

Comments
 (0)