From 9e8fc784abb5cb7368b951b573442092c5012692 Mon Sep 17 00:00:00 2001 From: Edvinas Date: Tue, 3 Oct 2023 22:16:59 +0300 Subject: [PATCH] Add some logging --- .github/workflows/upm.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/upm.yml b/.github/workflows/upm.yml index 1fcea2a..c3709c5 100644 --- a/.github/workflows/upm.yml +++ b/.github/workflows/upm.yml @@ -14,6 +14,8 @@ jobs: env: PACKAGE_DIR: Packages/com.chark.scriptable-scenes + SAMPLE_SRC_DIR: Assets/Samples + SAMPLE_DST_DIR: Samples~ steps: - uses: actions/checkout@v2 @@ -27,13 +29,13 @@ jobs: git checkout '${{ github.event.inputs.branch }}' git push -f -u origin '${{ github.event.inputs.branch }}' - - name: Move 'Assets/Samples' directory to 'Samples~' + - name: Move '${{ env.SAMPLE_SRC_DIR }}' directory to '${{ env.SAMPLE_DST_DIR }}' run: | - git checkout "${GITHUB_REF#refs/heads/}" -- Assets/Samples + echo "Checking out ${{ env.SAMPLE_SRC_DIR }} from ${GITHUB_REF#refs/heads/}" + git checkout "${GITHUB_REF#refs/heads/}" -- '${{ env.SAMPLE_SRC_DIR }}' - mv 'Assets/Samples' 'Samples~' - rm -r 'Assets' + mv '${{ env.SAMPLE_SRC_DIR }}' '${{ env.SAMPLE_DST_DIR }}' - git add 'Samples~' + git add '${{ env.SAMPLE_DST_DIR }}' git commit -m 'Move samples' git push -f -u origin '${{ github.event.inputs.branch }}'