Skip to content

Commit 70dec82

Browse files
committed
bundle
1 parent ef3eb6a commit 70dec82

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

__tests__/main.test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,12 @@ test('successfully runs the action', async () => {
177177
expect(saveStateMock).toHaveBeenCalledWith('deployment_id', 123)
178178
expect(saveStateMock).toHaveBeenCalledWith('sha', 'abc123')
179179
expect(debugMock).toHaveBeenCalledWith('production_environment: true')
180-
expect(infoMock).toHaveBeenCalledWith(`🧑‍🚀 commit sha to deploy: ${COLORS.highlight}${mock_sha}${COLORS.reset}`)
181-
expect(infoMock).toHaveBeenCalledWith(`🚀 ${COLORS.success}deployment started!${COLORS.reset}`)
180+
expect(infoMock).toHaveBeenCalledWith(
181+
`🧑‍🚀 commit sha to deploy: ${COLORS.highlight}${mock_sha}${COLORS.reset}`
182+
)
183+
expect(infoMock).toHaveBeenCalledWith(
184+
`🚀 ${COLORS.success}deployment started!${COLORS.reset}`
185+
)
182186
})
183187

184188
test('successfully runs the action on a deployment to development and with branch updates disabled', async () => {

dist/index.js

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,9 @@ export async function run() {
608608
core.setOutput('continue', 'true')
609609
core.saveState('noop', precheckResults.noopMode)
610610

611-
core.info(`🧑‍🚀 commit sha to noop: ${COLORS.highlight}${precheckResults.sha}${COLORS.reset}`)
611+
core.info(
612+
`🧑‍🚀 commit sha to noop: ${COLORS.highlight}${precheckResults.sha}${COLORS.reset}`
613+
)
612614
core.info(`🚀 ${COLORS.success}deployment started!${COLORS.reset} (noop)`)
613615

614616
// If noop mode is enabled, return here
@@ -704,7 +706,9 @@ export async function run() {
704706
environmentObj.environmentUrl // environment_url (can be null)
705707
)
706708

707-
core.info(`🧑‍🚀 commit sha to deploy: ${COLORS.highlight}${precheckResults.sha}${COLORS.reset}`)
709+
core.info(
710+
`🧑‍🚀 commit sha to deploy: ${COLORS.highlight}${precheckResults.sha}${COLORS.reset}`
711+
)
708712
core.info(`🚀 ${COLORS.success}deployment started!${COLORS.reset}`)
709713
core.setOutput('continue', 'true')
710714
return 'success'

0 commit comments

Comments
 (0)