main: move io requirement higher
This commit is contained in:
parent
2754bd63e5
commit
37027eb435
2
main.js
2
main.js
|
@ -1,5 +1,6 @@
|
||||||
const core = require("@actions/core")
|
const core = require("@actions/core")
|
||||||
const exec = require("@actions/exec")
|
const exec = require("@actions/exec")
|
||||||
|
const io = require('@actions/io')
|
||||||
const firstline = require("firstline")
|
const firstline = require("firstline")
|
||||||
const path = require("path")
|
const path = require("path")
|
||||||
const fs = require("fs")
|
const fs = require("fs")
|
||||||
|
@ -16,7 +17,6 @@ function getImageTag(imageName, distribution) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getImageName(distribution) {
|
async function getImageName(distribution) {
|
||||||
const io = require('@actions/io')
|
|
||||||
const tag = getImageTag("", distribution)
|
const tag = getImageTag("", distribution)
|
||||||
for (const image of ["debian", "ubuntu"]) {
|
for (const image of ["debian", "ubuntu"]) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue