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,30 +32,32 @@ 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
51-
52- - name : Run Metric Collection Job
53- working-directory : tools/spectral/ipa/metrics/scripts
54- run : node runMetricCollection.js "${{ github.workspace }}/v2.json"
55-
56- - name : Dump Metric Collection Job Data to S3
57- 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 }}
61- working-directory : tools/spectral/ipa/metrics/scripts
62- run : node dataDump.js
63-
64- failure-handler :
65- name : Failure Handler
66- needs : [ release-IPA-metrics ]
67- if : ${{ failure() }}
68- uses : ./.github/workflows/failure-handler.yml
69- with :
70- env : ' dev'
71- release_name : " IPA Metrics"
72- secrets :
73- jira_api_token : ${{ secrets.JIRA_API_TOKEN }}
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 }}
38+
39+ - name : Verify downloaded file
40+ run : ls -lh
41+
42+ # - name: Run Metric Collection Job
43+ # working-directory: tools/spectral/ipa/metrics/scripts
44+ # run: node runMetricCollection.js "${{ github.workspace }}/v2.json"
45+ #
46+ # - name: Dump Metric Collection Job Data to S3
47+ # env:
48+ # AWS_ACCESS_KEY_ID: ${{ secrets.IPA_S3_BUCKET_DW_PROD_USERNAME }}
49+ # AWS_SECRET_ACCESS_KEY: ${{ secrets.IPA_S3_BUCKET_DW_PROD_PASSWORD }}
50+ # S3_BUCKET_PREFIX: ${{ secrets.IPA_S3_BUCKET_DW_PROD_PREFIX }}
51+ # working-directory: tools/spectral/ipa/metrics/scripts
52+ # run: node dataDump.js
53+ #
54+ # failure-handler:
55+ # name: Failure Handler
56+ # needs: [ release-IPA-metrics ]
57+ # if: ${{ failure() }}
58+ # uses: ./.github/workflows/failure-handler.yml
59+ # with:
60+ # env: 'dev'
61+ # release_name: "IPA Metrics"
62+ # secrets:
63+ # jira_api_token: ${{ secrets.JIRA_API_TOKEN }}
0 commit comments