From 2a9be0cee64fa4270170a8ad7965e40c484bb22b Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:00:53 +0300 Subject: [PATCH] build_dir fix2 --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 99381721..8eb112f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,12 +13,12 @@ jobs: steps: - uses: actions/checkout@v2 - name: Build 5.x - env: - BUILD_DIR: Sophia-ps5-${{ github.ref }} - SOURCE_NAME: ${{ github.ref }} -replace ‘refs/\w+/’, ‘’ - SOURCE_BRANCH: ${{ github.ref }} -replace ‘refs/heads/’, ‘’ - SOURCE_TAG: ${{ github.ref }} -replace ‘refs/tags/’, ‘’ run: | + if ($env:GITHUB_REF -eq "refs/heads/master") { + BUILD_DIR = "master" + } else { + BUILD_DIR = ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’ + } Get-ChildItem Env: mkdir $BUILD_DIR cp -R Sophia/* $BUILD_DIR