Skip to content

Commit

Permalink
Update settings for github actions (#116)
Browse files Browse the repository at this point in the history
* Update settings

* Refresh settings

* Update script.sh

* Refresh settings

* Added migration for gha

* Generate repos list
  • Loading branch information
goruha authored Sep 16, 2024
1 parent b772f72 commit 71054ee
Show file tree
Hide file tree
Showing 8 changed files with 124 additions and 0 deletions.
10 changes: 10 additions & 0 deletions migrate/migrations/20240716/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## what
- Update `.github/settings.yml`
- Drop `.github/auto-release.yml` files

## why
- Re-apply `.github/settings.yml` from org level
- Use organization level auto-release settings

## references
- DEV-1242 Add protected tags with Repository Rulesets on GitHub
16 changes: 16 additions & 0 deletions migrate/migrations/20240716/repos-00
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
cloudposse/github-action-atmos-affected-stacks
cloudposse/github-action-atmos-terraform-apply
cloudposse/github-action-atmos-get-setting
cloudposse/github-action-release-branch-manager
cloudposse/github-action-major-release-tagger
cloudposse/github-action-setup-atmos
cloudposse/github-action-deploy-argocd
cloudposse/github-action-atmos-terraform-drift-detection
cloudposse/github-action-preview-environment-controller
cloudposse/github-action-atmos-affected-trigger-spacelift
cloudposse/github-action-atmos-component-updater
cloudposse/github-action-matrix-outputs-write
cloudposse/github-action-atmos-terraform-plan
cloudposse/github-action-deploy-helmfile
cloudposse/github-action-aws-region-reduction-map
cloudposse/github-action-secret-outputs
16 changes: 16 additions & 0 deletions migrate/migrations/20240716/repos-01
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
cloudposse/github-action-yaml-config-query
cloudposse/github-action-config-levels
cloudposse/github-action-docker-build-push
cloudposse/github-action-terraform-plan-storage
cloudposse/github-action-wait-commit-status
cloudposse/github-action-pull-request-labeling
cloudposse/github-action-datadog-notify
cloudposse/github-action-mega-linter
cloudposse/github-action-telemetry
cloudposse/github-action-deploy-spacelift
cloudposse/github-action-monorepo-random-controller
cloudposse/github-action-preview-labels-cleanup
cloudposse/github-action-seek-deployment
cloudposse/github-action-docker-compose-test-run
cloudposse/github-action-spacelift-stack-deploy
cloudposse/github-action-terratest
16 changes: 16 additions & 0 deletions migrate/migrations/20240716/repos-02
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
cloudposse/github-action-interface-environment
cloudposse/github-action-deploy-ecspresso
cloudposse/github-action-terraform-auto-context
cloudposse/github-action-validate-codeowners
cloudposse/github-action-atmos-terraform-drift-remediation
cloudposse/github-action-release-label-validator
cloudposse/github-action-matrix-outputs-read
cloudposse/github-action-atmos-terraform-select-components
cloudposse/github-action-matrix-extended
cloudposse/github-action-sync-docker-repos
cloudposse/github-action-auto-format
cloudposse/github-action-jq
cloudposse/github-action-run-ecspresso
cloudposse/github-action-kubernetes-environment
cloudposse/github-action-auto-release
cloudposse/github-action-docker-promote
3 changes: 3 additions & 0 deletions migrate/migrations/20240716/repos-03
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cloudposse/github-action-docker-image-exists
cloudposse/github-action-pre-commit
cloudposse/github-action-atmos-dependencies-test
5 changes: 5 additions & 0 deletions migrate/migrations/20240716/repos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
gh repo list cloudposse --limit 500 --json name,owner \
--jq '.[] | select(.name | test("^github-action-")) | .owner.login + "/" + .name' > repos.txt

split -d -l 16 repos.txt repos-
51 changes: 51 additions & 0 deletions migrate/migrations/20240716/repos.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
cloudposse/github-action-atmos-affected-stacks
cloudposse/github-action-atmos-terraform-apply
cloudposse/github-action-atmos-get-setting
cloudposse/github-action-release-branch-manager
cloudposse/github-action-major-release-tagger
cloudposse/github-action-setup-atmos
cloudposse/github-action-deploy-argocd
cloudposse/github-action-atmos-terraform-drift-detection
cloudposse/github-action-preview-environment-controller
cloudposse/github-action-atmos-affected-trigger-spacelift
cloudposse/github-action-atmos-component-updater
cloudposse/github-action-matrix-outputs-write
cloudposse/github-action-atmos-terraform-plan
cloudposse/github-action-deploy-helmfile
cloudposse/github-action-aws-region-reduction-map
cloudposse/github-action-secret-outputs
cloudposse/github-action-yaml-config-query
cloudposse/github-action-config-levels
cloudposse/github-action-docker-build-push
cloudposse/github-action-terraform-plan-storage
cloudposse/github-action-wait-commit-status
cloudposse/github-action-pull-request-labeling
cloudposse/github-action-datadog-notify
cloudposse/github-action-mega-linter
cloudposse/github-action-telemetry
cloudposse/github-action-deploy-spacelift
cloudposse/github-action-monorepo-random-controller
cloudposse/github-action-preview-labels-cleanup
cloudposse/github-action-seek-deployment
cloudposse/github-action-docker-compose-test-run
cloudposse/github-action-spacelift-stack-deploy
cloudposse/github-action-terratest
cloudposse/github-action-interface-environment
cloudposse/github-action-deploy-ecspresso
cloudposse/github-action-terraform-auto-context
cloudposse/github-action-validate-codeowners
cloudposse/github-action-atmos-terraform-drift-remediation
cloudposse/github-action-release-label-validator
cloudposse/github-action-matrix-outputs-read
cloudposse/github-action-atmos-terraform-select-components
cloudposse/github-action-matrix-extended
cloudposse/github-action-sync-docker-repos
cloudposse/github-action-auto-format
cloudposse/github-action-jq
cloudposse/github-action-run-ecspresso
cloudposse/github-action-kubernetes-environment
cloudposse/github-action-auto-release
cloudposse/github-action-docker-promote
cloudposse/github-action-docker-image-exists
cloudposse/github-action-pre-commit
cloudposse/github-action-atmos-dependencies-test
7 changes: 7 additions & 0 deletions migrate/migrations/20240716/script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title "Update .github/settings.yml"

refresh_github_settings
remove .github/auto-release.yml

# Merge the PR
auto_merge

0 comments on commit 71054ee

Please sign in to comment.