@codedrifters/configulator 0.0.92 → 0.0.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.mjs CHANGED
@@ -1356,6 +1356,7 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends Component10 {
1356
1356
  constructor(project, options = {}) {
1357
1357
  super(project);
1358
1358
  this.project = project;
1359
+ this.options = options;
1359
1360
  /**
1360
1361
  * AWS environment type, such as primary or secondary.
1361
1362
  *
@@ -1408,6 +1409,7 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends Component10 {
1408
1409
  if (branchPattern.includes("*")) {
1409
1410
  const prefix = branchPattern.replace(/\*.*$/, "");
1410
1411
  conditions.push(`startsWith(github.ref, 'refs/heads/${prefix}')`);
1412
+ conditions.push(`startsWith(github.head_ref, '${prefix}')`);
1411
1413
  } else {
1412
1414
  conditions.push(`github.ref == 'refs/heads/${branchPattern}'`);
1413
1415
  }
@@ -1555,10 +1557,10 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends Component10 {
1555
1557
  const branchFilterCondition = this.buildBranchFilterCondition(
1556
1558
  target.branches
1557
1559
  );
1558
- const jobCondition = branchFilterCondition ? [
1559
- "${{ !needs.build.outputs.self_mutation_happened }}",
1560
+ const jobCondition = branchFilterCondition ? "${{ " + [
1561
+ "!needs.build.outputs.self_mutation_happened",
1560
1562
  `(${branchFilterCondition})`
1561
- ].join(" && ") : "${{ !needs.build.outputs.self_mutation_happened }}";
1563
+ ].join(" && ") + " }}" : "${{ !needs.build.outputs.self_mutation_happened }}";
1562
1564
  this.buildWorkflow.addPostBuildJob(deployJobName, {
1563
1565
  name: `Deploy ${this.project.name} ${target.awsStageType}/${target.deploymentTargetRole}/${target.account}/${target.region}`,
1564
1566
  needs: [