From 35e1aeefab183ddc4694abf9c3f62707a05e1c59 Mon Sep 17 00:00:00 2001 From: Ikiru Yoshizaki <3856350+guitarrapc@users.noreply.github.com> Date: Wed, 14 Oct 2020 11:45:33 +0900 Subject: [PATCH 1/2] chore: replace set-env to ENV FILE $GITHUB_ENV fix https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ --- .github/workflows/build-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 8f5cbb2..cd96fe5 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -21,7 +21,7 @@ jobs: with: dotnet-version: 3.1.x # set release tag(*.*.*) to env.GIT_TAG - - run: echo ::set-env name=GIT_TAG::${GITHUB_REF#refs/tags/} + - run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV # pack nuget - run: dotnet build -c Release -p:Version=${{ env.GIT_TAG }} @@ -45,7 +45,7 @@ jobs: with: dotnet-version: 3.1.x # set release tag(*.*.*) to env.GIT_TAG - - run: echo ::set-env name=GIT_TAG::${GITHUB_REF#refs/tags/} + - run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV # Create Releases - uses: actions/create-release@v1 From 19000c947dbf1d76350b0914b931f67941545752 Mon Sep 17 00:00:00 2001 From: Ikiru Yoshizaki <3856350+guitarrapc@users.noreply.github.com> Date: Wed, 14 Oct 2020 11:49:00 +0900 Subject: [PATCH 2/2] chore: push build only master --- .github/workflows/build-debug.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index 22819e6..fd4da8f 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -3,7 +3,7 @@ name: Build-Debug on: push: branches: - - "**" + - "master" tags: - "!*" # not a tag push pull_request: