We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60f21d6 commit 5b7a1d1Copy full SHA for 5b7a1d1
.github/actions/artifact-size-metrics/show-results/action.yml
@@ -1,13 +1,22 @@
1
name: Artifact Size Metrics - Show Results
2
description: Posts a new artifact analysis comment on the PR
3
-
+inputs:
4
+ working-directory:
5
+ required: false
6
+ description: The working directory to use for reading the previously-generated report.
7
+ default: ''
8
runs:
9
using: "composite"
10
steps:
11
- name: Post Artifact Analysis Comment
12
uses: actions/github-script@v7
13
with:
14
script: |
15
+ const workingDirectory = '${{ inputs.working-directory }}'
16
+ if (workingDirectory) {
17
+ process.chdir(workingDirectory)
18
+ }
19
+
20
const fs = require('node:fs')
21
const prNumber = context.issue.number ?? process.env.SDK_PR
22
0 commit comments