Skip to content

Commit

Permalink
Update helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Nov 28, 2023
1 parent 0daa5d0 commit d86731a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ async function getStubsVersions(boto3Version) {
}

function getBotocoreVersion(version) {
const minor = parseInt(version.match(/\d+\.(\d+)\./)[1]) + 3
return version.replace(/\.\d+/, `.${minor}`)
return version
}

async function extractVersions() {
Expand All @@ -108,7 +107,9 @@ async function extractVersions() {
const extraFlags = []

const skipPublished = context.payload.inputs ? context.payload.inputs.skip_published !== 'false' : true
const noSmartVersion = context.payload.inputs ? context.payload.inputs.no_smart_version !== 'false' : true
if (skipPublished) extraFlags.push('--skip-published')
if (noSmartVersion) extraFlags.push('--no-smart-version')

core.info(`Extra flags = ${extraFlags}`)
core.setOutput('extra-flags', extraFlags.join(' '))
Expand Down Expand Up @@ -181,7 +182,9 @@ async function extractAioBotocoreVersions() {
const extraFlags = []

const skipPublished = context.payload.inputs ? context.payload.inputs.skip_published !== 'false' : false
const noSmartVersion = context.payload.inputs ? context.payload.inputs.no_smart_version !== 'false' : true
if (skipPublished) extraFlags.push('--skip-published')
if (noSmartVersion) extraFlags.push('--no-smart-version')

core.info(`Extra flags = ${extraFlags}`)
core.setOutput('extra-flags', extraFlags.join(' '))
Expand Down Expand Up @@ -295,7 +298,6 @@ module.exports = {
extractVersions,
extractDownloadLinks,
extractAioBotocoreVersions,
getAioBoto3Version,
getAioBotocoreVersion,
getTypesAioBotocoreVersions,
extractAioBotocoreDownloadLinks,
Expand Down

0 comments on commit d86731a

Please sign in to comment.