From a093e915029ef84b0a347900aac8df9c6c57c963 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sun, 2 Apr 2023 17:28:58 +0100 Subject: [PATCH] [ci skip] ci: cd upm before git diff --- .github/workflows/nightly.yml | 5 +++-- .github/workflows/prerelease.yml | 5 +++-- .github/workflows/release.yml | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 843113a..f0e5b87 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -60,14 +60,15 @@ jobs: cp package.json upm/package.json - name: Check for changes - run: git diff --quiet + run: | + cd upm + git diff --quiet shell: bash continue-on-error: true - name: Commit update if: ${{ success() }} run: | - cd upm cp ../X10D/bin/Debug/netstandard2.1/X10D.dll ./X10D.dll cp ../X10D/bin/Debug/netstandard2.1/X10D.xml ./X10D.xml cp ../X10D.Unity/bin/Debug/netstandard2.1/X10D.Unity.dll ./X10D.Unity.dll diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index ab51aef..c2e8834 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -66,14 +66,15 @@ jobs: cp package.json upm/package.json - name: Check for changes - run: git diff --quiet + run: | + cd upm + git diff --quiet shell: bash continue-on-error: true - name: Commit update if: ${{ success() }} run: | - cd upm cp ../X10D/bin/Release/netstandard2.1/X10D.dll ./X10D.dll cp ../X10D/bin/Release/netstandard2.1/X10D.xml ./X10D.xml cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.dll ./X10D.Unity.dll diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index de6a516..3390c0a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,14 +66,15 @@ jobs: cp package.json upm/package.json - name: Check for changes - run: git diff --quiet + run: | + cd upm + git diff --quiet shell: bash continue-on-error: true - name: Commit update if: ${{ success() }} run: | - cd upm cp ../X10D/bin/Release/netstandard2.1/X10D.dll ./X10D.dll cp ../X10D/bin/Release/netstandard2.1/X10D.xml ./X10D.xml cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.dll ./X10D.Unity.dll