Skip to content

Commit

Permalink
wip: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Sep 10, 2024
1 parent 8747699 commit 731b2cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 4 additions & 4 deletions forge/actions/publish/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30458,12 +30458,12 @@ async function run() {
return;
}

const currentBranch = github.context.ref.replace("refs/heads/", "");
const defaultBranch = github.context.payload.repository.default_branch;
core.info(
`Current ref: ${github.context.ref}\nDefault branch: ${github.context.payload.repository.default_branch}`,
`Current ref: ${currentBranch}\nDefault branch: ${defaultBranch}`,
);
if (
github.context.ref !== github.context.payload.repository.default_branch
) {
if (currentBranch !== defaultBranch) {
core.info("Not on default branch, skipping publish");
return;
}
Expand Down
2 changes: 1 addition & 1 deletion forge/actions/publish/dist/index.js.map

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions forge/actions/publish/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ async function run() {
core.info(
`Current ref: ${currentBranch}\nDefault branch: ${defaultBranch}`,
);
if (
currentBranch !== defaultBranch
) {
if (currentBranch !== defaultBranch) {
core.info("Not on default branch, skipping publish");
return;
}
Expand Down

0 comments on commit 731b2cc

Please sign in to comment.