Skip to content

Commit

Permalink
Moved OPERATOR_ID_MAIN environment variable definition up to the job
Browse files Browse the repository at this point in the history
level env section. Removing the need for the manual assign step in
acceptance-workflow

Signed-off-by: Roger Barker <[email protected]>
  • Loading branch information
rbarkerSL committed Sep 18, 2024
1 parent d2158f0 commit b2230eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/acceptance-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
permissions:
contents: write
# issues: read

env:
OPERATOR_ID_MAIN: ${{ inputs.operator_id }}

steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
Expand Down Expand Up @@ -70,10 +74,6 @@ jobs:
- name: Install hedera local
run: npm install @hashgraph/hedera-local -g

- name: Set operator id env variable if CI is manual
if: ${{ inputs.operator_id }}
run: echo "OPERATOR_ID_MAIN=${{ inputs.operator_id }}" >> $GITHUB_ENV

- name: Run hedera local
run: npx hedera restart -d --network-tag=${{inputs.networkTag}} --mirror-tag=${{inputs.mirrorTag}} --verbose=trace
env:
Expand Down

0 comments on commit b2230eb

Please sign in to comment.