Used inputs
This commit is contained in:
11
action.yml
11
action.yml
@@ -5,10 +5,13 @@ author: Skydust
|
||||
# Define your inputs here.
|
||||
inputs:
|
||||
branchesToIgnore:
|
||||
description: The username
|
||||
required: true
|
||||
branchesToRebaseOn:
|
||||
description: ""
|
||||
description: Comma separated branches to ignore
|
||||
default: "dev,main,master"
|
||||
required: false
|
||||
mainBranch:
|
||||
description: "The main branch to rebase on"
|
||||
default: "dev"
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: 'node20'
|
||||
|
||||
5
app.ts
5
app.ts
@@ -1,10 +1,11 @@
|
||||
import { spawn } from "child_process";
|
||||
import { ChildProcess, SpawnOptions } from "node:child_process";
|
||||
import * as core from '@actions/core';
|
||||
|
||||
// Ignored branches
|
||||
const IGNORED_BRANCHES = ["master", "main", "dev", "release"];
|
||||
const IGNORED_BRANCHES: string[] = core.getInput('branchesToIgnore', { required: false }).split(",");
|
||||
|
||||
const mainBranch = "dev";
|
||||
const mainBranch: string = core.getInput('mainBranch', { required: false });
|
||||
|
||||
enum Action {
|
||||
Rebase = 0,
|
||||
|
||||
19817
dist/app.js
vendored
19817
dist/app.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user