-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: undeploy-gae to take a branch argument
- Loading branch information
1 parent
32442ab
commit d749545
Showing
3 changed files
with
26 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
#!/usr/bin/env node | ||
|
||
import { runScript } from '@naturalcycles/nodejs-lib' | ||
import yargs from 'yargs' | ||
import { undeployGae } from '../deploy/deployGae' | ||
|
||
runScript(async () => { | ||
await undeployGae() | ||
const { branch } = yargs.options({ | ||
branch: { | ||
type: 'string', | ||
demandOption: true, | ||
desc: `Because Github Actions delete event happens after the branch is already deleted - you need to pass it manually`, | ||
}, | ||
}).argv | ||
|
||
await undeployGae(branch) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters