Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ outputs:
task-definition-arn:
description: The ARN of the registered ECS task definition
runs:
using: node12
using: node20
main: dist/index.js
8 changes: 7 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ module.exports = /******/ (() => {
Object.defineProperty(exports, '__esModule', { value: true });
const command_1 = __webpack_require__(87351);
const file_command_1 = __webpack_require__(717);
const fs = __importStar(__webpack_require__(35747));
const utils_1 = __webpack_require__(5278);
const os = __importStar(__webpack_require__(12087));
const path = __importStar(__webpack_require__(85622));
Expand Down Expand Up @@ -238,7 +239,12 @@ module.exports = /******/ (() => {
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setOutput(name, value) {
command_1.issueCommand('set-output', { name }, value);
const filePath = process.env['GITHUB_OUTPUT'];
if (filePath) {
fs.appendFileSync(filePath, `${name}=${value}${os.EOL}`, { encoding: 'utf8' });
} else {
throw new Error('GITHUB_OUTPUT environment variable is not set.');
}
}
exports.setOutput = setOutput;
/**
Expand Down