Skip to content

Commit

Permalink
creating a tagged release for double hooks invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-eddy committed Nov 3, 2022
1 parent 0ac69bb commit 3e31a5a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/amplify-cli-core/src/hooks/hooksExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ export const executeHooks = async (hooksMeta: HooksMeta): Promise<void> => {

const executionQueue = [commandHookFileMeta, subCommandHookFileMeta];

if (hooksMeta.getHookEvent().forcePush) {
// we want to run push related hooks when forcePush flag is enabled
hooksMeta.setEventCommand('push');
hooksMeta.setEventSubCommand(undefined);
const { commandHookFileMeta } = getHookFileMetas(hooksDirPath, hooksMeta.getHookEvent(), hooksConfig);
executionQueue.push(commandHookFileMeta);
}
// if (hooksMeta.getHookEvent().forcePush) {
// // we want to run push related hooks when forcePush flag is enabled
// hooksMeta.setEventCommand('push');
// hooksMeta.setEventSubCommand(undefined);
// const { commandHookFileMeta } = getHookFileMetas(hooksDirPath, hooksMeta.getHookEvent(), hooksConfig);
// executionQueue.push(commandHookFileMeta);
// }

for (const execFileMeta of executionQueue) {
if (!execFileMeta) {
Expand Down

0 comments on commit 3e31a5a

Please sign in to comment.