diff --git a/migrate/migrations/20240507/repos.sh b/migrate/migrations/20240507/repos.sh index e1827dd2..feaa1218 100755 --- a/migrate/migrations/20240507/repos.sh +++ b/migrate/migrations/20240507/repos.sh @@ -2,4 +2,4 @@ gh repo list cloudposse --limit 500 --json name,owner \ --jq '.[] | select(.name | test("^terraform")) | select(.name | test("^terraform-provider") | not) | .owner.login + "/" + .name' > repos.txt -split -d -l 16 repos.txt repos- \ No newline at end of file +split -d -l 16 repos.txt repos- diff --git a/migrate/migrations/20240517/README.md b/migrate/migrations/20240517/README.md new file mode 100644 index 00000000..af3b51f3 --- /dev/null +++ b/migrate/migrations/20240517/README.md @@ -0,0 +1,5 @@ +## what +- Update workflows (`.github/workflows`) to use shared workflows from `.github` repo + +## why +- Reduce nested levels of reusable workflows diff --git a/migrate/migrations/20240517/repos-00 b/migrate/migrations/20240517/repos-00 new file mode 100644 index 00000000..4238d731 --- /dev/null +++ b/migrate/migrations/20240517/repos-00 @@ -0,0 +1,16 @@ +cloudposse/terraform-aws-rds +cloudposse/terraform-aws-ec2-autoscale-group +cloudposse/terraform-aws-ecs-alb-service-task +cloudposse/terraform-aws-waf +cloudposse/terraform-module-test +cloudposse/terraform-aws-vpn-connection +cloudposse/terraform-aws-elastic-beanstalk-environment +cloudposse/terraform-aws-ssm-tls-ssh-key-pair +cloudposse/terraform-aws-dynamic-subnets +cloudposse/terraform-spacelift-cloud-infrastructure-automation +cloudposse/terraform-aws-alb-ingress +cloudposse/terraform-aws-ecs-web-app +cloudposse/terraform-aws-eks-fargate-profile +cloudposse/terraform-aws-eks-node-group +cloudposse/terraform-aws-iam-policy +cloudposse/terraform-aws-eks-cluster diff --git a/migrate/migrations/20240517/repos-01 b/migrate/migrations/20240517/repos-01 new file mode 100644 index 00000000..13ed425b --- /dev/null +++ b/migrate/migrations/20240517/repos-01 @@ -0,0 +1,16 @@ +cloudposse/terraform-aws-ec2-instance +cloudposse/terraform-aws-named-subnets +cloudposse/terraform-aws-documentdb-cluster +cloudposse/terraform-aws-cloudfront-s3-cdn +cloudposse/terraform-aws-ec2-bastion-server +cloudposse/terraform-aws-api-gateway +cloudposse/terraform-null-smtp-mail +cloudposse/terraform-aws-ssm-patch-manager +cloudposse/terraform-aws-iam-user +cloudposse/terraform-aws-vpc-peering-multi-account +cloudposse/terraform-aws-step-functions +cloudposse/terraform-aws-athena +cloudposse/terraform-aws-ecr-public +cloudposse/terraform-aws-service-quotas +cloudposse/terraform-aws-elasticache-memcached +cloudposse/terraform-aws-macie diff --git a/migrate/migrations/20240517/repos-02 b/migrate/migrations/20240517/repos-02 new file mode 100644 index 00000000..fd5495f2 --- /dev/null +++ b/migrate/migrations/20240517/repos-02 @@ -0,0 +1,16 @@ +cloudposse/terraform-aws-sso +cloudposse/terraform-aws-rds-replica +cloudposse/terraform-aws-eks-spotinst-ocean-nodepool +cloudposse/terraform-aws-inspector +cloudposse/terraform-yaml-config +cloudposse/terraform-opsgenie-incident-management +cloudposse/terraform-aws-cloudwatch-events +cloudposse/terraform-aws-transit-gateway +cloudposse/terraform-aws-sns-cloudwatch-sns-alarms +cloudposse/terraform-aws-ses +cloudposse/terraform-aws-ssm-parameter-chamber-reader +cloudposse/terraform-aws-cloudformation-stack +cloudposse/terraform-aws-cloudformation-stack-set +cloudposse/terraform-aws-iam-chamber-s3-role +cloudposse/terraform-aws-iam-s3-user +cloudposse/terraform-kubernetes-tfc-cloud-agent diff --git a/migrate/migrations/20240517/repos-03 b/migrate/migrations/20240517/repos-03 new file mode 100644 index 00000000..2d528598 --- /dev/null +++ b/migrate/migrations/20240517/repos-03 @@ -0,0 +1,16 @@ +cloudposse/terraform-example-module +cloudposse/terraform-aws-rds-cluster-instance-group +cloudposse/terraform-aws-iam-account-settings +cloudposse/terraform-aws-ecs-launch-template +cloudposse/terraform-aws-sns-lambda-notify-slack +cloudposse/terraform-aws-ecs-cloudwatch-autoscaling +cloudposse/terraform-aws-alb-target-group-cloudwatch-sns-alarms +cloudposse/terraform-aws-ecs-cloudwatch-sns-alarms +cloudposse/terraform-aws-cloudtrail-cloudwatch-alarms +cloudposse/terraform-aws-ssm-parameter-store-policy-documents +cloudposse/terraform-aws-ecs-spot-fleet +cloudposse/terraform-aws-ssm-iam-role +cloudposse/terraform-aws-sqs-cloudwatch-sns-alarms +cloudposse/terraform-aws-lambda-cloudwatch-sns-alarms +cloudposse/terraform-aws-ecs-events +cloudposse/terraform-aws-ecs-container-definition diff --git a/migrate/migrations/20240517/repos-04 b/migrate/migrations/20240517/repos-04 new file mode 100644 index 00000000..b70c320b --- /dev/null +++ b/migrate/migrations/20240517/repos-04 @@ -0,0 +1,16 @@ +cloudposse/terraform-aws-ec2-instance-group +cloudposse/terraform-aws-rds-cloudwatch-sns-alarms +cloudposse/terraform-aws-ssm-parameter-store +cloudposse/terraform-terraform-label +cloudposse/terraform-tls-ssh-key-pair +cloudposse/terraform-aws-kms-key +cloudposse/terraform-aws-dynamodb-autoscaler +cloudposse/terraform-aws-organization-access-group +cloudposse/terraform-aws-organization-access-role +cloudposse/terraform-aws-cloudwatch-flow-logs +cloudposse/terraform-aws-cloudwatch-logs +cloudposse/terraform-aws-multi-az-subnets +cloudposse/terraform-aws-vpc-peering +cloudposse/terraform-aws-datadog-integration +cloudposse/terraform-aws-iam-assumed-roles +cloudposse/terraform-aws-elastic-beanstalk-application diff --git a/migrate/migrations/20240517/repos-05 b/migrate/migrations/20240517/repos-05 new file mode 100644 index 00000000..3e719052 --- /dev/null +++ b/migrate/migrations/20240517/repos-05 @@ -0,0 +1,16 @@ +cloudposse/terraform-aws-ec2-ami-snapshot +cloudposse/terraform-aws-ec2-admin-server +cloudposse/terraform-null-ansible +cloudposse/terraform-aws-codebuild +cloudposse/terraform-aws-s3-log-storage +cloudposse/terraform-aws-route53-cluster-zone +cloudposse/terraform-aws-route53-alias +cloudposse/terraform-aws-key-pair +cloudposse/terraform-aws-efs-backup +cloudposse/terraform-aws-ecr +cloudposse/terraform-aws-dynamodb +cloudposse/terraform-aws-ec2-ami-backup +cloudposse/terraform-datadog-platform +cloudposse/terraform-aws-efs +cloudposse/terraform-aws-sns-topic +cloudposse/terraform-aws-firewall-manager diff --git a/migrate/migrations/20240517/repos-06 b/migrate/migrations/20240517/repos-06 new file mode 100644 index 00000000..2903002a --- /dev/null +++ b/migrate/migrations/20240517/repos-06 @@ -0,0 +1,16 @@ +cloudposse/terraform-aws-config +cloudposse/terraform-aws-health-events +cloudposse/terraform-aws-global-accelerator +cloudposse/terraform-cloudflare-waf-rulesets +cloudposse/terraform-aws-ssm-tls-self-signed-cert +cloudposse/terraform-aws-config-storage +cloudposse/terraform-cloudflare-zone +cloudposse/terraform-aws-s3-website +cloudposse/terraform-github-repository-webhooks +cloudposse/terraform-external-module-artifact +cloudposse/terraform-aws-code-deploy +cloudposse/terraform-aws-ses-lambda-forwarder +cloudposse/terraform-aws-elasticsearch +cloudposse/terraform-aws-security-hub +cloudposse/terraform-aws-guardduty +cloudposse/terraform-aws-mwaa diff --git a/migrate/migrations/20240517/repos-07 b/migrate/migrations/20240517/repos-07 new file mode 100644 index 00000000..9177f9ba --- /dev/null +++ b/migrate/migrations/20240517/repos-07 @@ -0,0 +1,16 @@ +cloudposse/terraform-aws-efs-cloudwatch-sns-alarms +cloudposse/terraform-aws-iam-role +cloudposse/terraform-aws-cloudfront-cdn +cloudposse/terraform-null-label +cloudposse/terraform-aws-alb +cloudposse/terraform-aws-rds-db-proxy +cloudposse/terraform-aws-lakeformation +cloudposse/terraform-aws-glue +cloudposse/terraform-aws-lambda-function +cloudposse/terraform-aws-transfer-sftp +cloudposse/terraform-aws-emr-cluster +cloudposse/terraform-aws-redshift-cluster +cloudposse/terraform-aws-route53-resolver-dns-firewall +cloudposse/terraform-aws-network-firewall +cloudposse/terraform-aws-route53-cluster-hostname +cloudposse/terraform-aws-dms diff --git a/migrate/migrations/20240517/repos-08 b/migrate/migrations/20240517/repos-08 new file mode 100644 index 00000000..18022a77 --- /dev/null +++ b/migrate/migrations/20240517/repos-08 @@ -0,0 +1,16 @@ +cloudposse/terraform-aws-github-action-token-rotator +cloudposse/terraform-aws-iam-system-user +cloudposse/terraform-aws-kinesis-stream +cloudposse/terraform-artifactory-kv-store +cloudposse/terraform-aws-vpc +cloudposse/terraform-aws-kv-store +cloudposse/terraform-aws-nlb +cloudposse/terraform-aws-refarch-utils +cloudposse/terraform-aws-batch +cloudposse/terraform-aws-utils +cloudposse/terraform-aws-ecs-cluster +cloudposse/terraform-aws-security-group +cloudposse/terraform-aws-cicd +cloudposse/terraform-aws-msk-apache-kafka-cluster +cloudposse/terraform-aws-tfstate-backend +cloudposse/terraform-yaml-stack-config diff --git a/migrate/migrations/20240517/repos-09 b/migrate/migrations/20240517/repos-09 new file mode 100644 index 00000000..2459f39a --- /dev/null +++ b/migrate/migrations/20240517/repos-09 @@ -0,0 +1,16 @@ +cloudposse/terraform-aws-lambda-elasticsearch-cleanup +cloudposse/terraform-aws-mq-broker +cloudposse/terraform-aws-vpc-flow-logs-s3-bucket +cloudposse/terraform-aws-datadog-lambda-forwarder +cloudposse/terraform-aws-helm-release +cloudposse/terraform-aws-cloudtrail-s3-bucket +cloudposse/terraform-aws-ec2-client-vpn +cloudposse/terraform-aws-eks-iam-role +cloudposse/terraform-aws-s3-bucket +cloudposse/terraform-aws-rds-cluster +cloudposse/terraform-aws-backup +cloudposse/terraform-aws-budgets +cloudposse/terraform-aws-eks-workers +cloudposse/terraform-aws-cloudtrail +cloudposse/terraform-aws-ecs-codepipeline +cloudposse/terraform-aws-acm-request-certificate diff --git a/migrate/migrations/20240517/repos-10 b/migrate/migrations/20240517/repos-10 new file mode 100644 index 00000000..42c787b0 --- /dev/null +++ b/migrate/migrations/20240517/repos-10 @@ -0,0 +1,5 @@ +cloudposse/terraform-aws-service-control-policies +cloudposse/terraform-aws-lb-s3-bucket +cloudposse/terraform-aws-elasticache-redis +cloudposse/terraform-aws-spotinst-mrscaler +cloudposse/terraform-aws-amplify-app diff --git a/migrate/migrations/20240517/repos.sh b/migrate/migrations/20240517/repos.sh new file mode 100755 index 00000000..c1c8c967 --- /dev/null +++ b/migrate/migrations/20240517/repos.sh @@ -0,0 +1,5 @@ +#!/bin/bash +gh repo list cloudposse --limit 500 --json name,owner \ + --jq '.[] | select(.name | test("^terraform")) | select(.name | test("^terraform-provider") | not) | select(.name | test("^terraform-aws-components") | not) | .owner.login + "/" + .name' > repos.txt + +split -d -l 16 repos.txt repos- diff --git a/migrate/migrations/20240517/repos.txt b/migrate/migrations/20240517/repos.txt new file mode 100644 index 00000000..73aabdc8 --- /dev/null +++ b/migrate/migrations/20240517/repos.txt @@ -0,0 +1,165 @@ +cloudposse/terraform-aws-rds +cloudposse/terraform-aws-ec2-autoscale-group +cloudposse/terraform-aws-ecs-alb-service-task +cloudposse/terraform-aws-waf +cloudposse/terraform-module-test +cloudposse/terraform-aws-vpn-connection +cloudposse/terraform-aws-elastic-beanstalk-environment +cloudposse/terraform-aws-ssm-tls-ssh-key-pair +cloudposse/terraform-aws-dynamic-subnets +cloudposse/terraform-spacelift-cloud-infrastructure-automation +cloudposse/terraform-aws-alb-ingress +cloudposse/terraform-aws-ecs-web-app +cloudposse/terraform-aws-eks-fargate-profile +cloudposse/terraform-aws-eks-node-group +cloudposse/terraform-aws-iam-policy +cloudposse/terraform-aws-eks-cluster +cloudposse/terraform-aws-ec2-instance +cloudposse/terraform-aws-named-subnets +cloudposse/terraform-aws-documentdb-cluster +cloudposse/terraform-aws-cloudfront-s3-cdn +cloudposse/terraform-aws-ec2-bastion-server +cloudposse/terraform-aws-api-gateway +cloudposse/terraform-null-smtp-mail +cloudposse/terraform-aws-ssm-patch-manager +cloudposse/terraform-aws-iam-user +cloudposse/terraform-aws-vpc-peering-multi-account +cloudposse/terraform-aws-step-functions +cloudposse/terraform-aws-athena +cloudposse/terraform-aws-ecr-public +cloudposse/terraform-aws-service-quotas +cloudposse/terraform-aws-elasticache-memcached +cloudposse/terraform-aws-macie +cloudposse/terraform-aws-sso +cloudposse/terraform-aws-rds-replica +cloudposse/terraform-aws-eks-spotinst-ocean-nodepool +cloudposse/terraform-aws-inspector +cloudposse/terraform-yaml-config +cloudposse/terraform-opsgenie-incident-management +cloudposse/terraform-aws-cloudwatch-events +cloudposse/terraform-aws-transit-gateway +cloudposse/terraform-aws-sns-cloudwatch-sns-alarms +cloudposse/terraform-aws-ses +cloudposse/terraform-aws-ssm-parameter-chamber-reader +cloudposse/terraform-aws-cloudformation-stack +cloudposse/terraform-aws-cloudformation-stack-set +cloudposse/terraform-aws-iam-chamber-s3-role +cloudposse/terraform-aws-iam-s3-user +cloudposse/terraform-kubernetes-tfc-cloud-agent +cloudposse/terraform-example-module +cloudposse/terraform-aws-rds-cluster-instance-group +cloudposse/terraform-aws-iam-account-settings +cloudposse/terraform-aws-ecs-launch-template +cloudposse/terraform-aws-sns-lambda-notify-slack +cloudposse/terraform-aws-ecs-cloudwatch-autoscaling +cloudposse/terraform-aws-alb-target-group-cloudwatch-sns-alarms +cloudposse/terraform-aws-ecs-cloudwatch-sns-alarms +cloudposse/terraform-aws-cloudtrail-cloudwatch-alarms +cloudposse/terraform-aws-ssm-parameter-store-policy-documents +cloudposse/terraform-aws-ecs-spot-fleet +cloudposse/terraform-aws-ssm-iam-role +cloudposse/terraform-aws-sqs-cloudwatch-sns-alarms +cloudposse/terraform-aws-lambda-cloudwatch-sns-alarms +cloudposse/terraform-aws-ecs-events +cloudposse/terraform-aws-ecs-container-definition +cloudposse/terraform-aws-ec2-instance-group +cloudposse/terraform-aws-rds-cloudwatch-sns-alarms +cloudposse/terraform-aws-ssm-parameter-store +cloudposse/terraform-terraform-label +cloudposse/terraform-tls-ssh-key-pair +cloudposse/terraform-aws-kms-key +cloudposse/terraform-aws-dynamodb-autoscaler +cloudposse/terraform-aws-organization-access-group +cloudposse/terraform-aws-organization-access-role +cloudposse/terraform-aws-cloudwatch-flow-logs +cloudposse/terraform-aws-cloudwatch-logs +cloudposse/terraform-aws-multi-az-subnets +cloudposse/terraform-aws-vpc-peering +cloudposse/terraform-aws-datadog-integration +cloudposse/terraform-aws-iam-assumed-roles +cloudposse/terraform-aws-elastic-beanstalk-application +cloudposse/terraform-aws-ec2-ami-snapshot +cloudposse/terraform-aws-ec2-admin-server +cloudposse/terraform-null-ansible +cloudposse/terraform-aws-codebuild +cloudposse/terraform-aws-s3-log-storage +cloudposse/terraform-aws-route53-cluster-zone +cloudposse/terraform-aws-route53-alias +cloudposse/terraform-aws-key-pair +cloudposse/terraform-aws-efs-backup +cloudposse/terraform-aws-ecr +cloudposse/terraform-aws-dynamodb +cloudposse/terraform-aws-ec2-ami-backup +cloudposse/terraform-datadog-platform +cloudposse/terraform-aws-efs +cloudposse/terraform-aws-sns-topic +cloudposse/terraform-aws-firewall-manager +cloudposse/terraform-aws-config +cloudposse/terraform-aws-health-events +cloudposse/terraform-aws-global-accelerator +cloudposse/terraform-cloudflare-waf-rulesets +cloudposse/terraform-aws-ssm-tls-self-signed-cert +cloudposse/terraform-aws-config-storage +cloudposse/terraform-cloudflare-zone +cloudposse/terraform-aws-s3-website +cloudposse/terraform-github-repository-webhooks +cloudposse/terraform-external-module-artifact +cloudposse/terraform-aws-code-deploy +cloudposse/terraform-aws-ses-lambda-forwarder +cloudposse/terraform-aws-elasticsearch +cloudposse/terraform-aws-security-hub +cloudposse/terraform-aws-guardduty +cloudposse/terraform-aws-mwaa +cloudposse/terraform-aws-efs-cloudwatch-sns-alarms +cloudposse/terraform-aws-iam-role +cloudposse/terraform-aws-cloudfront-cdn +cloudposse/terraform-null-label +cloudposse/terraform-aws-alb +cloudposse/terraform-aws-rds-db-proxy +cloudposse/terraform-aws-lakeformation +cloudposse/terraform-aws-glue +cloudposse/terraform-aws-lambda-function +cloudposse/terraform-aws-transfer-sftp +cloudposse/terraform-aws-emr-cluster +cloudposse/terraform-aws-redshift-cluster +cloudposse/terraform-aws-route53-resolver-dns-firewall +cloudposse/terraform-aws-network-firewall +cloudposse/terraform-aws-route53-cluster-hostname +cloudposse/terraform-aws-dms +cloudposse/terraform-aws-github-action-token-rotator +cloudposse/terraform-aws-iam-system-user +cloudposse/terraform-aws-kinesis-stream +cloudposse/terraform-artifactory-kv-store +cloudposse/terraform-aws-vpc +cloudposse/terraform-aws-kv-store +cloudposse/terraform-aws-nlb +cloudposse/terraform-aws-refarch-utils +cloudposse/terraform-aws-batch +cloudposse/terraform-aws-utils +cloudposse/terraform-aws-ecs-cluster +cloudposse/terraform-aws-security-group +cloudposse/terraform-aws-cicd +cloudposse/terraform-aws-msk-apache-kafka-cluster +cloudposse/terraform-aws-tfstate-backend +cloudposse/terraform-yaml-stack-config +cloudposse/terraform-aws-lambda-elasticsearch-cleanup +cloudposse/terraform-aws-mq-broker +cloudposse/terraform-aws-vpc-flow-logs-s3-bucket +cloudposse/terraform-aws-datadog-lambda-forwarder +cloudposse/terraform-aws-helm-release +cloudposse/terraform-aws-cloudtrail-s3-bucket +cloudposse/terraform-aws-ec2-client-vpn +cloudposse/terraform-aws-eks-iam-role +cloudposse/terraform-aws-s3-bucket +cloudposse/terraform-aws-rds-cluster +cloudposse/terraform-aws-backup +cloudposse/terraform-aws-budgets +cloudposse/terraform-aws-eks-workers +cloudposse/terraform-aws-cloudtrail +cloudposse/terraform-aws-ecs-codepipeline +cloudposse/terraform-aws-acm-request-certificate +cloudposse/terraform-aws-service-control-policies +cloudposse/terraform-aws-lb-s3-bucket +cloudposse/terraform-aws-elasticache-redis +cloudposse/terraform-aws-spotinst-mrscaler +cloudposse/terraform-aws-amplify-app diff --git a/migrate/migrations/20240517/script.sh b/migrate/migrations/20240517/script.sh new file mode 100644 index 00000000..768e4b20 --- /dev/null +++ b/migrate/migrations/20240517/script.sh @@ -0,0 +1,10 @@ +title "Update GitHub Workflows to use shared workflows from '.github' repo" + +install .github/workflows +remove .github/workflows/feature-branch.yml +remove .github/workflows/release-branch.yml +remove .github/workflows/release-published.yml +remove .github/workflows/feature-branch-chatops.yml + +# Merge the PR +auto_merge diff --git a/migrate/templates/terraform-module/.github/workflows/release-branch.yml b/migrate/templates/terraform-module/.github/workflows/branch.yml similarity index 52% rename from migrate/templates/terraform-module/.github/workflows/release-branch.yml rename to migrate/templates/terraform-module/.github/workflows/branch.yml index 852d5e3e..fd64cd85 100644 --- a/migrate/templates/terraform-module/.github/workflows/release-branch.yml +++ b/migrate/templates/terraform-module/.github/workflows/branch.yml @@ -1,6 +1,11 @@ --- -name: release-branch +name: Branch on: + pull_request: + branches: + - main + - release/** + types: [opened, synchronize, reopened, labeled, unlabeled] push: branches: - main @@ -16,5 +21,5 @@ permissions: {} jobs: terraform-module: - uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release-branch.yml@main + uses: cloudposse/.github/.github/workflows/shared-terraform-module.yml@main secrets: inherit diff --git a/migrate/templates/terraform-module/.github/workflows/chatops.yml b/migrate/templates/terraform-module/.github/workflows/chatops.yml new file mode 100644 index 00000000..c3d47fa6 --- /dev/null +++ b/migrate/templates/terraform-module/.github/workflows/chatops.yml @@ -0,0 +1,16 @@ +--- +name: chatops +on: + issue_comment: + types: [created] + +permissions: + pull-requests: write + id-token: write + contents: write + +jobs: + terraform-module: + uses: cloudposse/.github/.github/workflows/shared-terraform-chatops.yml@main + secrets: + github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }} diff --git a/migrate/templates/terraform-module/.github/workflows/feature-branch.yml b/migrate/templates/terraform-module/.github/workflows/feature-branch.yml deleted file mode 100644 index ebd8854f..00000000 --- a/migrate/templates/terraform-module/.github/workflows/feature-branch.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -name: feature-branch -on: - pull_request: - branches: - - main - - release/** - types: [opened, synchronize, reopened, labeled, unlabeled] - -permissions: - pull-requests: write - id-token: write - contents: write - issues: write - -jobs: - terraform-module: - uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/feature-branch.yml@main - secrets: inherit diff --git a/migrate/templates/terraform-module/.github/workflows/release-published.yml b/migrate/templates/terraform-module/.github/workflows/release-published.yml deleted file mode 100644 index 1b0aaca7..00000000 --- a/migrate/templates/terraform-module/.github/workflows/release-published.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -name: release-published -on: - release: - types: - - published - -permissions: {} - -jobs: - terraform-module: - uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release-published.yml@main - secrets: inherit diff --git a/migrate/templates/terraform-module/.github/workflows/release.yml b/migrate/templates/terraform-module/.github/workflows/release.yml new file mode 100644 index 00000000..f9680681 --- /dev/null +++ b/migrate/templates/terraform-module/.github/workflows/release.yml @@ -0,0 +1,13 @@ +--- +name: release +on: + release: + types: + - published + +permissions: {} + +jobs: + terraform-module: + uses: cloudposse/.github/.github/workflows/shared-release-branches.yml@main + secrets: inherit diff --git a/migrate/templates/terraform-module/.github/workflows/scheduled.yml b/migrate/templates/terraform-module/.github/workflows/scheduled.yml index 7bc09ab9..a79e9498 100644 --- a/migrate/templates/terraform-module/.github/workflows/scheduled.yml +++ b/migrate/templates/terraform-module/.github/workflows/scheduled.yml @@ -12,5 +12,5 @@ permissions: jobs: scheduled: - uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/scheduled.yml@main + uses: cloudposse/.github/.github/workflows/shared-terraform-scheduled.yml@main secrets: inherit