Skip to content

Commit

Permalink
chore: use global env for github.inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
guitarrapc committed Feb 3, 2021
1 parent 0c1fe93 commit c532b39
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
default: "false"

env:
GIT_TAG: ${{ github.event.inputs.tag }}
DRY_RUN: ${{ github.event.inputs.dry_run }}
DRY_RUN_BRANCH_PREFIX: "test_release"
DOTNET_SDK_VERISON_3: 3.1.x
DOTNET_SDK_VERISON_5: 5.0.x
Expand All @@ -20,9 +22,7 @@ jobs:
update-packagejson:
runs-on: ubuntu-latest
env:
GIT_TAG: ${{ github.event.inputs.tag }}
TARGET_FILE: ./src/Ulid.Unity/Assets/Scripts/Ulid/package.json
DRY_RUN: ${{ github.event.inputs.dry_run }}
outputs:
sha: ${{ steps.commit.outputs.sha }}
steps:
Expand Down Expand Up @@ -67,7 +67,6 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
GIT_TAG: ${{ github.event.inputs.tag }}
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
NUGET_XMLDOC_MODE: skip
Expand Down Expand Up @@ -109,8 +108,6 @@ jobs:
include:
- unity: 2019.3.9f1
license: UNITY_2019_3
env:
GIT_TAG: ${{ github.event.inputs.tag }}
runs-on: ubuntu-latest
timeout-minutes: 15
container:
Expand Down Expand Up @@ -158,7 +155,6 @@ jobs:
needs: [update-packagejson, build-dotnet, build-unity]
runs-on: ubuntu-latest
env:
GIT_TAG: ${{ github.event.inputs.tag }}
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
NUGET_XMLDOC_MODE: skip
Expand Down Expand Up @@ -199,8 +195,6 @@ jobs:
if: github.event.inputs.dry_run == 'true'
needs: [build-dotnet, build-unity]
runs-on: ubuntu-latest
env:
GIT_TAG: ${{ github.event.inputs.tag }}
steps:
- name: Delete branch
uses: dawidd6/action-delete-branch@v3
Expand Down

0 comments on commit c532b39

Please sign in to comment.