semantic-branch-version/index.js

8 lines
208 B
JavaScript
Raw Normal View History

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