Skip to content

Commit

Permalink
Force deploys so that opening multiple PRs at a time doesn't fail
Browse files Browse the repository at this point in the history
  • Loading branch information
wildlyinaccurate committed Oct 20, 2020
1 parent a54e136 commit c3b10a9
Show file tree
Hide file tree
Showing 5 changed files with 315 additions and 294 deletions.
8 changes: 5 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async function run() {
if (urlId) {
core.info(`Creating deploy for URL ${urlId}`);

deployResults = SpeedCurve.deploys.createForUrls(apiKey, [urlId], deployNote);
deployResults = SpeedCurve.deploys.createForUrls(apiKey, [urlId], { note: deployNote, force: true });

if (!deployResults.length || !deployResults[0].success) {
await afterDeploy();
Expand All @@ -96,7 +96,7 @@ async function run() {
} else if (siteId) {
core.info(`Creating deploy for site ${siteId}`);

deployResults = await SpeedCurve.deploys.create(apiKey, [siteId], deployNote);
deployResults = await SpeedCurve.deploys.create(apiKey, [siteId], { note: deployNote, force: true });

if (!deployResults.length || !deployResults[0].success) {
await afterDeploy();
Expand Down
Loading

0 comments on commit c3b10a9

Please sign in to comment.