From b830b05333feb154b1cbe39c4f05fbf1d6852558 Mon Sep 17 00:00:00 2001 From: Chris Pilcher <7553472+chris-pilcher@users.noreply.github.com> Date: Sat, 14 Dec 2024 12:16:30 +1300 Subject: [PATCH] use environment variables to pass in variables --- .github/workflows/publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 58c7ca77..c4c56dc5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,7 +24,10 @@ jobs: run: curl -s https://cli.nr-ext.net/installer.sh | sudo bash - name: NR1 CLI - Add Profile - run: nr1 profiles:add --name test-env --api-key ${{ secrets.NEW_RELIC_API_KEY }} --region ${NEW_RELIC_REGION} + run: nr1 profiles:add --name test-env --api-key ${NEW_RELIC_API_KEY} --region ${NEW_RELIC_REGION} + with: + NEW_RELIC_API_KEY: ${{ secrets.NEW_RELIC_API_KEY }} + NEW_RELIC_REGION: ${{ var.NEW_RELIC_REGION }} - name: NR1 CLI - Display Version run: nr1 --version