fix ncc always outputing file as index.s
This commit is contained in:
parent
494a52a721
commit
664643a9d3
@ -29,7 +29,7 @@ outputs:
|
||||
|
||||
ci_hostname:
|
||||
description: 'ci server hostname without http(s) prefix'
|
||||
|
||||
|
||||
semver_valid:
|
||||
description: "Flag indicating if the semver version parsed from a tag is valid"
|
||||
semver_major:
|
||||
@ -45,8 +45,8 @@ outputs:
|
||||
|
||||
runs:
|
||||
using: "node20"
|
||||
main: ./dist/action.js
|
||||
main: ./dist/index.js
|
||||
|
||||
branding:
|
||||
icon: git-branch
|
||||
color: white
|
||||
color: white
|
||||
|
||||
@ -22,12 +22,9 @@ export function collect_git(debug = false, output = false) {
|
||||
};
|
||||
|
||||
try {
|
||||
// TODO actually strip tag prefix
|
||||
const stripTagPrefix = core.getInput('strip_tag_prefix');
|
||||
|
||||
if (debug) {
|
||||
console.log(JSON.stringify(github.context, null, 2));
|
||||
}
|
||||
|
||||
r.git_is_tag = github.context.ref.startsWith('refs/tags/');
|
||||
r.git_default_branch = github.context.payload?.repository?.defaultBranch;
|
||||
r.git_is_pull_request = github.context.payload.pull_request != null;
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import * as github from '@actions/github';
|
||||
import {collect_ci} from './collect_ci';
|
||||
import {collect_git} from './collect_git';
|
||||
|
||||
@ -6,6 +7,11 @@ export {collect_git} from './collect_git';
|
||||
export {collect_ci} from './collect_ci';
|
||||
|
||||
export function collect_all(debug = false, output = false) {
|
||||
|
||||
if (debug) {
|
||||
console.log(JSON.stringify(github.context, null, 2));
|
||||
}
|
||||
|
||||
collect_ci(debug, output);
|
||||
collect_git(debug, output);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user