Skip to content

Commit

Permalink
ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
fubark committed Jan 6, 2024
1 parent 612ef95 commit 6d543a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gen-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
}
const version = await execCmd('zig', ['build', 'version']);
const parts = version.split('.')
const last_version = parts[0] + '.' + parseInt(parts[1])-1
const last_version = parts[0] + '.' + (parseInt(parts[1])-1)
core.exportVariable('SHORT_VERSION', version);
await execCmd('git', ['fetch', '--all', '--tags']);
const build = await execCmd('git', ['rev-list', '--count', `${last_version}..${context.sha}`])
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/latest-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ jobs:
}
const version = await execCmd('zig', ['build', 'version']);
const parts = version.split('.')
const last_version = parts[0] + '.' + parseInt(parts[1])-1
const last_version = parts[0] + '.' + (parseInt(parts[1])-1)
core.exportVariable('SHORT_VERSION', version);
await execCmd('git', ['fetch', '--all', '--tags']);
const build = await execCmd('git', ['rev-list', '--count', `${last_version}..${context.sha}`])
Expand Down Expand Up @@ -342,7 +342,7 @@ jobs:
}
const version = await execCmd('zig', ['build', 'version']);
const parts = version.split('.')
const last_version = parts[0] + '.' + parseInt(parts[1])-1
const last_version = parts[0] + '.' + (parseInt(parts[1])-1)
core.exportVariable('SHORT_VERSION', version);
await execCmd('git', ['fetch', '--all', '--tags']);
const build = await execCmd('git', ['rev-list', '--count', `${last_version}..${context.sha}`])
Expand Down

0 comments on commit 6d543a3

Please sign in to comment.