Skip to content

Commit 7b96f33

Browse files
address the comments
1 parent e0f30db commit 7b96f33

File tree

1 file changed

+15
-28
lines changed

1 file changed

+15
-28
lines changed

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

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,34 @@
33
name: IPA Validation Metrics Release
44
on:
55
schedule:
6-
- cron: '0 22 * * *' # Runs daily at 22:00 UTC (10 PM UTC)
6+
- cron: '0 11 * * *' # Runs daily at 11:00 UTC (11 AM UTC)
77
workflow_dispatch:
88
permissions:
99
issues: write
1010
env:
1111
NODE_VERSION: '20.x'
1212
WORKING_DIR: ./tools/spectral/ipa/metrics/scripts
1313
OAS_ENV: 'dev'
14-
OAS_BRANCH: 'main'
14+
OAS_BRANCH: 'dev'
15+
OAS_FILE: 'openapi/v2.json'
1516

1617
jobs:
1718
# Generates and uploads the IPA validation metrics to S3
1819
release-IPA-metrics:
1920
name: Release IPA Validation Metrics
2021
runs-on: ubuntu-latest
2122
steps:
22-
- name: Checkout
23-
uses: actions/checkout@v4
23+
- name: Checkout repository (scripts)
24+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
25+
with:
26+
sparse-checkout:
27+
tools/spectral/ipa
28+
29+
- name: Checkout repository (dev branch)
30+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
31+
with:
32+
ref: $OAS_BRANCH
33+
sparse-checkout: $OAS_FILE
2434

2535
- name: Setup Node
2636
uses: actions/setup-node@v4
@@ -31,32 +41,9 @@ jobs:
3141
- name: Install npm dependencies
3242
run: npm install
3343

34-
- name: Checkout repository
35-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
36-
with:
37-
ref: $OAS_BRANCH
38-
token: ${{secrets.API_BOT_PAT}}
39-
40-
- name: Upload current Specs and Changelog files
41-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
42-
with:
43-
name: base-$OAS_ENV
44-
retention-days: 1
45-
path: |
46-
openapi/v2/openapi*.json
47-
changelog/changelog.json
48-
changelog/internal/changelog-all.json
49-
changelog/internal/metadata.json
50-
51-
- name: Download openapi-foas
52-
uses: actions/download-artifact@v4
53-
with:
54-
name: openapi-foas-$OAS_ENV
55-
github-token: ${{ secrets.API_BOT_PAT }}
56-
5744
- name: Run Metric Collection Job
5845
working-directory: $WORKING_DIR
59-
run: node runMetricCollection.js ../../../../../openapi-foas.json
46+
run: node runMetricCollection.js ../../../../../openapi/v2.json
6047

6148
- name: Dump Metric Collection Job Data to S3
6249
env:

0 commit comments

Comments
 (0)