From 343783915f28df12d3acd687f85beb2850427fe8 Mon Sep 17 00:00:00 2001 From: otherview Date: Wed, 20 Sep 2023 12:10:05 +0100 Subject: [PATCH] testing .env --- .github/workflows/dev-testnet.env | 1 + .github/workflows/manual-deploy-testnet-l2.yml | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/dev-testnet.env diff --git a/.github/workflows/dev-testnet.env b/.github/workflows/dev-testnet.env new file mode 100644 index 0000000000..05fbcc2ee8 --- /dev/null +++ b/.github/workflows/dev-testnet.env @@ -0,0 +1 @@ +RESOURCE_TESTNET_NAME=dev-testnet \ No newline at end of file diff --git a/.github/workflows/manual-deploy-testnet-l2.yml b/.github/workflows/manual-deploy-testnet-l2.yml index abcd9888fd..99cdf04e25 100644 --- a/.github/workflows/manual-deploy-testnet-l2.yml +++ b/.github/workflows/manual-deploy-testnet-l2.yml @@ -28,8 +28,6 @@ on: jobs: build: runs-on: ubuntu-latest - environment: - name: ${{ github.event.inputs.testnet_type }} # Map a step output to a job output outputs: @@ -40,6 +38,17 @@ jobs: POC_ERC20_ADDR: ${{ steps.deployContracts.outputs.POC_ERC20_ADDR }} steps: + - name: Load environment variables + uses: dotenv-actions/setup-dotenv@v2 + with: + dotenv_path: ${{ github.event.inputs.testnet_type }}.env + + - name: 'Deploy Contracts' + id: deployContracts + shell: bash + run: | + echo "Loaded environment variables -> $RESOURCE_TESTNET_NAME" + - uses: actions/checkout@v3 - uses: actions/setup-go@v4