1
0
Fork 0

More cleanup

pull/1497/head
Konrad Pabjan 2023-08-17 12:23:09 -04:00
parent d03f5b9c2b
commit d615bc4ddf
3 changed files with 2 additions and 20 deletions

View File

@ -73,5 +73,7 @@ jobs:
if (!success) { if (!success) {
throw new Error('Failed to upload artifact') throw new Error('Failed to upload artifact')
} else {
console.log(`Successfully uploaded artifact ${id}`)
} }

View File

@ -1,5 +0,0 @@
name: 'Set env variables'
description: 'Sets certain env variables so that e2e artifact upload, list, get and download can be tested in a shell'
runs:
using: 'node16'
main: 'index.js'

View File

@ -1,15 +0,0 @@
// Certain env variables are not set by default in a shell context and are only available in a node context from a running action
// In order to be able to upload and download artifacts e2e in a shell when running CI tests, we need these env variables set
const fs = require('fs');
const os = require('os');
const filePath = process.env[`GITHUB_ENV`]
fs.appendFileSync(filePath, `ACTIONS_RESULTS_URL=${process.env.ACTIONS_RESULTS_URL}${os.EOL}`, {
encoding: 'utf8'
})
fs.appendFileSync(filePath, `ACTIONS_RUNTIME_TOKEN=${process.env.ACTIONS_RUNTIME_TOKEN}${os.EOL}`, {
encoding: 'utf8'
})
fs.appendFileSync(filePath, `GITHUB_RUN_ID=${process.env.GITHUB_RUN_ID}${os.EOL}`, {
encoding: 'utf8'
})