Skip to content

Commit 80e1c4e

Browse files
committed
Switched to setting the API token in the Actions workflow via the CLI to avoid needing email address and ID
1 parent ee561c1 commit 80e1c4e

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/wiremock-deploy.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,8 @@ jobs:
2020
- name: Install WireMock CLI
2121
run: npm install -g @wiremock/cli
2222

23-
- name: Create WireMock config directory
24-
run: mkdir -p ~/.config/wiremock-cli
25-
26-
- name: Create WireMock config file
27-
run: |
28-
cat > ~/.config/wiremock-cli/config.yaml << 'EOF'
29-
wiremock:
30-
cloud: {user: {id: 'm7m1g', email: '${{ secrets.WIREMOCK_EMAIL }}', token: '${{ secrets.WIREMOCK_TOKEN }}'}}
31-
EOF
23+
- name: Set the API token
24+
run: wiremock config set api_token ${{ secrets.WIREMOCK_TOKEN }}
3225

3326
- name: Push mock API to WireMock Cloud
3427
run: wiremock push mock-api git-pr-workflow-demo --to 8vo14

0 commit comments

Comments
 (0)