Skip to content

Commit 6150c12

Browse files
committed
fix ab-testing deploy workflows
1 parent 332aa60 commit 6150c12

File tree

2 files changed

+13
-24
lines changed

2 files changed

+13
-24
lines changed

.github/workflows/ab-testing-deploy-code.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,9 @@ jobs:
1616
deploy:
1717
name: Deploy CODE
1818
needs: ci
19-
runs-on: ubuntu-latest
20-
defaults:
21-
run:
22-
working-directory: ab-testing
23-
steps:
24-
- name: Deploy
25-
uses: ./.github/workflows/ab-testing-deploy.yml
26-
with:
27-
stage: code
28-
env:
29-
FASTLY_AB_TESTING_CONFIG: ${{ secrets.FASTLY_CODE_AB_TESTING_CONFIG }}
30-
FASTLY_API_TOKEN: ${{ secrets.FASTLY_CODE_API_TOKEN }}
19+
uses: ./.github/workflows/ab-testing-deploy.yml
20+
with:
21+
stage: code
22+
secrets:
23+
FASTLY_AB_TESTING_CONFIG: ${{ secrets.FASTLY_CODE_AB_TESTING_CONFIG }}
24+
FASTLY_API_TOKEN: ${{ secrets.FASTLY_CODE_API_TOKEN }}

.github/workflows/ab-testing-deploy-prod.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,13 @@ jobs:
1717
secrets:
1818
FASTLY_AB_TESTING_CONFIG: ${{ secrets.FASTLY_PROD_AB_TESTING_CONFIG }}
1919
FASTLY_API_TOKEN: ${{ secrets.FASTLY_PROD_API_TOKEN }}
20+
2021
deploy:
2122
name: Deploy PROD
2223
needs: ci
23-
runs-on: ubuntu-latest
24-
defaults:
25-
run:
26-
working-directory: ab-testing
27-
steps:
28-
- name: Deploy
29-
uses: ./.github/workflows/ab-testing-deploy.yml
30-
with:
31-
stage: prod
32-
env:
33-
FASTLY_AB_TESTING_CONFIG: ${{ secrets.FASTLY_PROD_AB_TESTING_CONFIG }}
34-
FASTLY_API_TOKEN: ${{ secrets.FASTLY_PROD_API_TOKEN }}
24+
uses: ./.github/workflows/ab-testing-deploy.yml
25+
with:
26+
stage: prod
27+
secrets:
28+
FASTLY_AB_TESTING_CONFIG: ${{ secrets.FASTLY_PROD_AB_TESTING_CONFIG }}
29+
FASTLY_API_TOKEN: ${{ secrets.FASTLY_PROD_API_TOKEN }}

0 commit comments

Comments
 (0)