We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec22a30 commit 4809a88Copy full SHA for 4809a88
1 file changed
src/index.js
@@ -14,6 +14,10 @@ async function runAction() {
14
}
15
16
// https://docs.github.com/en/actions/learn-github-actions/contexts#example-contents-of-the-github-contex
17
+ if (!github.context.payload.ref) {
18
+ core.info('Brand is not part of repository, skipping check.');
19
+ return;
20
+ }
21
const currentRef = github.context.payload.ref.replace(/^refs\/heads\//, '');
22
const workflowTarget = github.context.workflow;
23
core.info(`Branch Ref: ${currentRef}, Workflow: ${workflowTarget}`);
0 commit comments