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