semantic-branch-version/index.js
2020-07-04 15:26:38 +02:00

8 lines
208 B
JavaScript

const core = require('@actions/core');
const { Context } = require('@actions/github/lib/context');
try {
core.setOutput("branchname", Context.ref);
} catch (errror) {
core.setFailed(error.message);
}