Skip to content

Commit c07ed22

Browse files
CLOUDP-296432: Update IPA release workflow to dump to production s3
1 parent 6b144e8 commit c07ed22

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

.github/workflows/release-IPA-metrics.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,6 @@ jobs:
1515
name: Release IPA Validation Metrics
1616
runs-on: ubuntu-latest
1717
steps:
18-
- name: Fetch OAS file from Dev Branch
19-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
20-
with:
21-
ref: 'dev'
22-
sparse-checkout: openapi/v2.json
23-
24-
- name: Upload OAS file
25-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
26-
with:
27-
name: oas-dev
28-
path: openapi/v2.json
29-
3018
- name: Checkout repository (scripts)
3119
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
3220
with:
@@ -44,20 +32,19 @@ jobs:
4432
- name: Install npm dependencies
4533
run: npm install
4634

47-
- name: Download oas-dev
48-
uses: actions/download-artifact@v4
49-
with:
50-
name: oas-dev
35+
- name: Fetch OAS file from Dev Branch
36+
run: curl -L -O "https://raw.githubusercontent.com/mongodb/openapi/refs/heads/dev/openapi/v2.json"
37+
working-directory: ${{ github.workspace }}
5138

5239
- name: Run Metric Collection Job
5340
working-directory: tools/spectral/ipa/metrics/scripts
5441
run: node runMetricCollection.js "${{ github.workspace }}/v2.json"
5542

5643
- name: Dump Metric Collection Job Data to S3
5744
env:
58-
AWS_ACCESS_KEY_ID: ${{ secrets.IPA_S3_BUCKET_DW_STAGING_USERNAME }}
59-
AWS_SECRET_ACCESS_KEY: ${{ secrets.IPA_S3_BUCKET_DW_STAGING_PASSWORD }}
60-
S3_BUCKET_PREFIX: ${{ secrets.IPA_S3_BUCKET_DW_STAGING_PREFIX }}
45+
AWS_ACCESS_KEY_ID: ${{ secrets.IPA_S3_BUCKET_DW_PROD_USERNAME }}
46+
AWS_SECRET_ACCESS_KEY: ${{ secrets.IPA_S3_BUCKET_DW_PROD_PASSWORD }}
47+
S3_BUCKET_PREFIX: ${{ secrets.IPA_S3_BUCKET_DW_PROD_PREFIX }}
6148
working-directory: tools/spectral/ipa/metrics/scripts
6249
run: node dataDump.js
6350

0 commit comments

Comments
 (0)