Skip to content

Commit e0f30db

Browse files
address the comments
1 parent 8dc3505 commit e0f30db

File tree

2 files changed

+22
-31
lines changed

2 files changed

+22
-31
lines changed

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

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ permissions:
1010
env:
1111
NODE_VERSION: '20.x'
1212
WORKING_DIR: ./tools/spectral/ipa/metrics/scripts
13-
RELEASE_ENV: 'dev'
13+
OAS_ENV: 'dev'
14+
OAS_BRANCH: 'main'
1415

1516
jobs:
1617
# Generates and uploads the IPA validation metrics to S3
@@ -30,10 +31,27 @@ jobs:
3031
- name: Install npm dependencies
3132
run: npm install
3233

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+
3351
- name: Download openapi-foas
3452
uses: actions/download-artifact@v4
3553
with:
36-
name: openapi-foas-$RELEASE_ENV
54+
name: openapi-foas-$OAS_ENV
3755
github-token: ${{ secrets.API_BOT_PAT }}
3856

3957
- name: Run Metric Collection Job
@@ -54,7 +72,7 @@ jobs:
5472
if: ${{ failure() }}
5573
uses: ./.github/workflows/failure-handler.yml
5674
with:
57-
env: $RELEASE_ENV
58-
release_name: "OpenAPI Spec"
75+
env: $OAS_ENV
76+
release_name: "IPA Metrics"
5977
secrets:
6078
jira_api_token: ${{ secrets.JIRA_API_TOKEN }}

tools/spectral/ipa/metrics/scripts/getShouldRunMetricsRelease.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)