Skip to content

Commit 3258c7f

Browse files
committed
Use right secret
1 parent 129180e commit 3258c7f

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/actions/e2e-tests/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ runs:
2323
env:
2424
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
2525
run: |
26-
# Extract PR number from environment name (e.g., pr123 -> 123)
26+
# Extract PR number from environment name
2727
if [[ "${{ inputs.targetEnvironment }}" =~ ^pr([0-9]+)$ ]]; then
2828
pr_number="${BASH_REMATCH[1]}"
2929
labels=$(gh pr view "$pr_number" --json labels --jq '.labels[].name' 2>/dev/null || echo "")
@@ -51,7 +51,7 @@ runs:
5151
if: steps.check_e2e.outputs.run_e2e == 'true'
5252
shell: bash
5353
run: |
54-
echo "$APP_PEM_FILE" > "${GITHUB_WORKSPACE}/internal-dev-test-1.pem"
54+
echo "$INTERNAL_DEV_TEST_PEM" > "${GITHUB_WORKSPACE}/internal-dev-test-1.pem"
5555
chmod 600 "${GITHUB_WORKSPACE}/internal-dev-test-1.pem"
5656
export PROXY_NAME=nhs-notify-supplier--internal-dev--nhs-notify-supplier
5757
export API_ENVIRONMENT=internal-dev

.github/workflows/stage-4-acceptance.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ jobs:
9696
- name: "Run e2e tests"
9797
uses: ./.github/actions/e2e-tests
9898
env:
99-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10099
NON_PROD_API_KEY: ${{ secrets.NON_PROD_API_KEY }}
101-
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
100+
INTERNAL_DEV_TEST_PEM: ${{ secrets.INTERNAL_DEV_TEST_PEM }}
102101
with:
103102
targetEnvironment: ${{ env.ENVIRONMENT }}

0 commit comments

Comments
 (0)