Skip to content

Commit 7a4a7c1

Browse files
committed
try to report branch name
1 parent 0562bd9 commit 7a4a7c1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/pull-request-checks.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,36 +103,36 @@ jobs:
103103
rum=$(cat ./build/nr-rum-standard.stats.json); echo "rum=$rum" >> $GITHUB_OUTPUT;
104104
full=$(cat ./build/nr-full-standard.stats.json); echo "full=$full" >> $GITHUB_OUTPUT;
105105
spa=$(cat ./build/nr-spa-standard.stats.json); echo "spa=$spa" >> $GITHUB_OUTPUT;
106+
- name: Clean branch name
107+
id: clean-branch-name
108+
run: echo "results=$(echo '${{ github.event.base_ref || github.ref_name }}' | sed 's/refs\/heads\///g' | sed 's/[^[:alnum:].-]/-/g')" >> $GITHUB_OUTPUT
106109
- name: Report rum size to NR
107110
uses: metal-messiah/webpack-build-size-action@main
108111
with:
109112
nr-api-key: ${{ secrets.INTERNAL_STAGING_INGEST_LICENSE_KEY }}
110113
nr-account-id: '550352'
111114
nr-env: 'staging'
112-
analysis-type: 'webpack'
113115
analysis-file-contents: ${{ steps.get-stats.outputs.rum }}
114116
file-name-filter: '.min.js'
115-
traverse: false
117+
version: ${{ steps.clean-branch-name.outputs.results }}
116118
- name: Report full size to NR
117119
uses: metal-messiah/webpack-build-size-action@main
118120
with:
119121
nr-api-key: ${{ secrets.INTERNAL_STAGING_INGEST_LICENSE_KEY }}
120122
nr-account-id: '550352'
121123
nr-env: 'staging'
122-
analysis-type: 'webpack'
123124
analysis-file-contents: ${{ steps.get-stats.outputs.full }}
124125
file-name-filter: '.min.js'
125-
traverse: false
126+
version: ${{ steps.clean-branch-name.outputs.results }}
126127
- name: Report spa size to NR
127128
uses: metal-messiah/webpack-build-size-action@main
128129
with:
129130
nr-api-key: ${{ secrets.INTERNAL_STAGING_INGEST_LICENSE_KEY }}
130131
nr-account-id: '550352'
131132
nr-env: 'staging'
132-
analysis-type: 'webpack'
133133
analysis-file-contents: ${{ steps.get-stats.outputs.spa }}
134134
file-name-filter: '.min.js'
135-
traverse: false
135+
version: ${{ steps.clean-branch-name.outputs.results }}
136136

137137
# Jobs for workflow_dispatch events
138138

0 commit comments

Comments
 (0)