Skip to content

Commit

Permalink
chore: add helper logging
Browse files Browse the repository at this point in the history
  • Loading branch information
oflynned committed Feb 19, 2023
1 parent 8f89ac1 commit 5ab1138
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ import { Build, bumpBuild, getBuildFromVersion, Version } from './version';
const main = async () => {
await Toolkit.run(async (tools): Promise<void> => {
try {
console.log('process.env.GITHUB_WORKSPACE', process.env.GITHUB_WORKSPACE);
console.log('process.env.GITHUB_HEAD_REF', process.env.GITHUB_HEAD_REF);

await runCommand('git', ['fetch']);
await runCommand('git', ['checkout', process.env.GITHUB_REF as any]);

const tagPrefix = getTagPrefix(tools);
const skipCi = isSkippingCi(tools);
const buildNumber = getBuildNumber(tools);
Expand All @@ -31,7 +37,7 @@ const main = async () => {

build = bumpBuild(commits ?? [], existingVersion, buildNumber);
} else {
// create version 0.0.1 by default in build.gradle if not exists
// create version 0.0.1 by default in build.gradle if it does not exist
const defaultBuild: Version = {
major: 0,
minor: 0,
Expand Down

0 comments on commit 5ab1138

Please sign in to comment.