-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues With Archived Repositories #88
Comments
Removing it from the terraform config sounds like a sensible way forward. |
@sprankhub Yes. I believe solution you proposed will serve the best. We could also filter repositories by https://developer.hashicorp.com/terraform/cli/commands/state/rm I'm thinking about implementing |
I'd defo go for the state removal. You could use an expanded spec for conventional commits and then deignate specific keys for actions? Would make the knowledge share for actions maybe a bit easier to share with the team? |
I think the solution proposed by @Jakski to just filter out archived repos in a loop is a bit nicer, because it doesn't require two separate PRs to archive a repository. Theoretically, you'd first need to add the |
This is about https://github.com/mage-os/terraform/actions/runs/9500022004/job/26182150184.
When a repository is archived, and we update some configuration like the branch protection rules, Terraform will try to apply the changes to the archived repository and GitHub will throw an error:
We had a similar issue in #54, but the new issue cannot be fixed in the same way.
My current idea is that we remove the old, archived repository from the Terraform state and from the
variables.tf
file. This way, Terraform might just ignore the existing, archived repository. Would that work, @Jakski?Any other ideas?
The text was updated successfully, but these errors were encountered: