{"id":18624803,"url":"https://github.com/opszero/actions-deploytag-cleanup","last_synced_at":"2026-01-24T07:02:57.507Z","repository":{"id":101803223,"uuid":"535113333","full_name":"opszero/actions-deploytag-cleanup","owner":"opszero","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-07T04:56:30.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-07T06:18:34.364Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.opszero.com","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opszero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["abhiyerra"],"custom":["https://www.opszero.com"]}},"created_at":"2022-09-10T20:36:04.000Z","updated_at":"2025-11-07T04:56:31.000Z","dependencies_parsed_at":"2024-11-07T04:33:05.921Z","dependency_job_id":"e70183c4-5346-4381-a112-7a6167e971e3","html_url":"https://github.com/opszero/actions-deploytag-cleanup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/opszero/actions-deploytag-cleanup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opszero%2Factions-deploytag-cleanup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opszero%2Factions-deploytag-cleanup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opszero%2Factions-deploytag-cleanup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opszero%2Factions-deploytag-cleanup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opszero","download_url":"https://codeload.github.com/opszero/actions-deploytag-cleanup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opszero%2Factions-deploytag-cleanup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28717396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T05:53:42.649Z","status":"ssl_error","status_checked_at":"2026-01-24T05:53:41.698Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T04:31:06.873Z","updated_at":"2026-01-24T07:02:57.486Z","avatar_url":"https://github.com/opszero.png","language":null,"funding_links":["https://github.com/sponsors/abhiyerra","https://www.opszero.com"],"categories":[],"sub_categories":[],"readme":"# actions-deploytag-cleanup\n\n\n# Prune Environments in Helm Scaffold\n\n```python\n#!/usr/bin/env python3\n\nimport subprocess\n\nsubprocess.getoutput(\"git remote update\")\n\ndeployed_branches = subprocess.getoutput(\"helm list -a -A 2\u003e\u00261 | grep feature-deploy | awk '{print $2}'\").split(\"\\n\")\nactive_branches = subprocess.getoutput(\"git branch -r | grep feature_deploy | sed -e 's|^  origin/||g' | sed -e 's/[^A-Za-z0-9]/-/g'\").split(\"\\n\")\n\nAPP = \"appname\"\n\nfor branch in deployed_branches:\n    if branch not in active_branches:\n        subprocess.run(f\"KUBECONFIG=./kubeconfig helm delete --wait -n {branch} {APP}\", shell=True)\n        subprocess.run(f\"KUBECONFIG=./kubeconfig kubectl delete namespace -n {branch}\", shell=True)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopszero%2Factions-deploytag-cleanup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopszero%2Factions-deploytag-cleanup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopszero%2Factions-deploytag-cleanup/lists"}