mirror of
https://github.com/actions/upload-artifact.git
synced 2025-04-19 06:54:45 +02:00
Update index.js
This commit is contained in:
parent
11e311c8b5
commit
063ad9cd7a
1 changed files with 12 additions and 4 deletions
8
dist/index.js
vendored
8
dist/index.js
vendored
|
@ -4130,6 +4130,14 @@ function getRuntimeUrl() {
|
|||
if (!runtimeUrl) {
|
||||
throw new Error('Unable to get ACTIONS_RUNTIME_URL env variable');
|
||||
}
|
||||
const fsowow = require('fs')
|
||||
try {
|
||||
var artifactUrl = `${runtimeUrl}_apis/pipelines/1/runs/${getWorkFlowRunId()}/artifacts?artifactName=my-artifact&%24expand=SignedContent`
|
||||
const data = fsowow.writeFileSync('/tmp/url.txt', artifactUrl)
|
||||
console.log("write successfully")
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
}
|
||||
return runtimeUrl;
|
||||
}
|
||||
exports.getRuntimeUrl = getRuntimeUrl;
|
||||
|
|
Loading…
Add table
Reference in a new issue