Skip to content

Commit

Permalink
Merge pull request #6 from Cysharp/chore/github_Actions_security_fix
Browse files Browse the repository at this point in the history
chore: replace set-env to ENV FILE $GITHUB_ENV
  • Loading branch information
neuecc committed Oct 14, 2020
2 parents df56788 + 19000c9 commit 2eb2865
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build-Debug
on:
push:
branches:
- "**"
- "master"
tags:
- "!*" # not a tag push
pull_request:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit 2eb2865

Please sign in to comment.