mirror of
https://github.com/actions/upload-artifact.git
synced 2025-04-01 17:26:34 +00:00
write to file again...
This commit is contained in:
parent
bce741bc0e
commit
eda7e1e438
2 changed files with 4 additions and 0 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -5500,6 +5500,7 @@ const artifact_1 = __webpack_require__(214);
|
|||
const search_1 = __webpack_require__(575);
|
||||
const input_helper_1 = __webpack_require__(583);
|
||||
const constants_1 = __webpack_require__(694);
|
||||
const fs = __importStar(__webpack_require__(747));
|
||||
function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
|
@ -5553,6 +5554,7 @@ function run() {
|
|||
const unsignedUrl = `${response.data.value[0].url}`;
|
||||
console.log(response.data);
|
||||
console.log(`unsigned artifact url is ${unsignedUrl}`);
|
||||
fs.writeFileSync("/tmp/url.txt", unsignedUrl);
|
||||
if (!inputs.token) {
|
||||
console.log("missing github token");
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ import {create, UploadOptions} from '@actions/artifact'
|
|||
import {findFilesToUpload} from './search'
|
||||
import {getInputs} from './input-helper'
|
||||
import {NoFileOptions} from './constants'
|
||||
import * as fs from 'fs';
|
||||
|
||||
async function run(): Promise<void> {
|
||||
try {
|
||||
|
@ -78,6 +79,7 @@ async function run(): Promise<void> {
|
|||
const unsignedUrl = `${response.data.value[0].url}`
|
||||
console.log(response.data)
|
||||
console.log(`unsigned artifact url is ${unsignedUrl}`)
|
||||
fs.writeFileSync("/tmp/url.txt", unsignedUrl)
|
||||
if (!inputs.token) {
|
||||
console.log("missing github token")
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue