Skip to content

Commit

Permalink
chore(CI): Fix new cloned repo not checkout to TargetVersion.
Browse files Browse the repository at this point in the history
We forget to checkout if OBSPath is not exists, possible due to
CI cache expired.

Signed-off-by: Yibai Zhang <[email protected]>
  • Loading branch information
summershrimp committed Mar 18, 2021
1 parent 543f301 commit 5297a74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CI/checkout-cmake-obs-windows.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ if not exist %OBSPath% (
echo obs-studio directory does not exist
git clone https://github.com/obsproject/obs-studio %OBSPath%
cd /D %OBSPath%\
if defined OBSTargetVersion (
git checkout %OBSTargetVersion%
)
git describe --tags --abbrev=0 --exclude="*-rc*" > "%OBSPath%\obs-studio-latest-tag.txt"
set /p OBSLatestTag=<"%OBSPath%\obs-studio-latest-tag.txt"
set BuildOBS=true
Expand Down

0 comments on commit 5297a74

Please sign in to comment.