File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 4646 # Extract the token value from the response
4747 runner_token=$(echo "$response" | jq -r '.token')
4848
49- # Export the token as an environment variable
50- echo "export RUNNER_TOKEN=$runner_token" >> $GITHUB_ENV
51-
5249 # Store the token as a secret in GitHub Actions for use
5350 # in subsequent steps with terraform for runner registration
5451 gh secret set RUNNER_TOKEN -r "$repo" -b "$runner_token"
6360 run : |
6461 terraform init-backend-config="organization=subspace" -backend-config="workspaces=${{ secrets.WORKSPACE_NAME }}"
6562 terraform plan -var-file=/tmp/terraform.tfvars
66- terraform apply -auto-approve -var "gh_token=${{ env .RUNNER_TOKEN }}" -var-file=/tmp/terraform.tfvars
63+ terraform apply -auto-approve -var "gh_token=${{ secrets .RUNNER_TOKEN }}" -var-file=/tmp/terraform.tfvars
You can’t perform that action at this time.
0 commit comments