Skip to content

Commit

Permalink
fix: remove timeout for concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
federico-po committed Aug 25, 2022
1 parent 8d7ec84 commit 168c25d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions asana-actions-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ const ASANA_MILESTONE_FIELD_NAME = 'Target Release Version'
const GITHUB_MILESTONE_REGEX = '[0-9].*'
const ASANA_MILESTONE_REGEX = '[0-9].*'

const RUNNING_TESTS = process.env.NODE_ENV === 'test'

module.exports = async (core, github) => {
const githubToken = core.getInput('github_token')
const asanaToken = core.getInput('asana_token')
Expand Down Expand Up @@ -166,11 +164,6 @@ module.exports = async (core, github) => {
core.info(`${JSON.stringify(milestone)}, ${action}`)

const milestoneId = isMilestoned ? milestone.title : null // demilestoned still hold the old value for milestone.
if (isMilestoned && !RUNNING_TESTS) {
// Changing from milestone X to Y triggers demilestoned and milestone at the same time
// And it sometimes end up setting it first and then cleaning it up.
await new Promise((resolve) => setTimeout(resolve, 15000))
}
core.info(
milestoneId
? `Found milestone ${milestoneId}`
Expand Down

0 comments on commit 168c25d

Please sign in to comment.