{"id":15653175,"url":"https://github.com/varunsridharan/action-gitea-mirror","last_synced_at":"2025-04-30T21:10:59.257Z","repository":{"id":65162203,"uuid":"304646289","full_name":"varunsridharan/action-gitea-mirror","owner":"varunsridharan","description":"Simple Python Script To Auto Trigger Gitea Mirror Using Github Action ","archived":false,"fork":false,"pushed_at":"2021-04-30T01:18:32.000Z","size":50,"stargazers_count":35,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-18T19:38:16.413Z","etag":null,"topics":["actions","gitea","gitea-mirror","github","github-actions","github-gitea-mirror","github-repository-mirror","hacktoberfest","hacktoberfest2020","mirror","mirror-python","python"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/github-to-gitea-mirror","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/varunsridharan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-16T14:11:08.000Z","updated_at":"2025-02-16T01:02:33.000Z","dependencies_parsed_at":"2023-01-04T12:39:06.167Z","dependency_job_id":null,"html_url":"https://github.com/varunsridharan/action-gitea-mirror","commit_stats":{"total_commits":34,"total_committers":3,"mean_commits":"11.333333333333334","dds":0.08823529411764708,"last_synced_commit":"4f3871acc4c86415577a89ae1b136f599ef2efa0"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Faction-gitea-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Faction-gitea-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Faction-gitea-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Faction-gitea-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/varunsridharan","download_url":"https://codeload.github.com/varunsridharan/action-gitea-mirror/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251782776,"owners_count":21642987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["actions","gitea","gitea-mirror","github","github-actions","github-gitea-mirror","github-repository-mirror","hacktoberfest","hacktoberfest2020","mirror","mirror-python","python"],"created_at":"2024-10-03T12:44:52.952Z","updated_at":"2025-04-30T21:10:59.239Z","avatar_url":"https://github.com/varunsridharan.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://cdn.svarun.dev/gh/varunsridharan/action-gitea-mirror/banner.jpg\" /\u003e\u003c/p\u003e\n\n# Gitea Mirror - **Github Action** \n\n\u003e ℹ︎  This Action uses [Github \u003e Gitea Mirror Script][ggms]. And The Arguments supported by that script is supported here to\n\n## Requirements\n* Self / Cloud Hosted [Gitea](gitea) Instance\n* Github Personal Access Token\n* Gitea Personal Access Token\n\n### Github Access Token Scopes\n* if you want to mirror private repos then select everything under Repo scope\n* if you want to mirror public repos then select repo.public_repo scope\n* if you want to mirror secret Gists then select gist scope\n\n\n## Why Github Action ? Can't This Script Run Inside Selfhosted Instance ?\nYes this script [Github \u003e Gitea Mirror][ggms] Can be ran inside the selfhosted instance. but i created this action for few reasons\n\n* This action can be used for ppl how are not tech savvy\n* Personally i wanted to remove resource used by [Github \u003e Gitea Mirror][ggms] Script \n* I think that there are some advantages when calling GithubAPI Inside an Github Action\n\n\n## ⚙️ Configuration\n| Option | Description |\n| --- | --- |\n| `github.username` | Your Github Username |\n| `github.accesstoken` | Your Github Account's Personal Access Token |\n| - | - | \n| `gitea.host` | Selfhosted Gitea URL without `/` at the end |\n| `gitea.accesstoken` | Your Personal Access Token |\n| `gitea.username` | Account User Name |\n| `gitea.gist.prefix` | Custom Prefix For Repository When Mirroring Gists |\n| `gitea.gist.surfix` | Custom Prefix For Repository When Mirroring Gists |\n| - | - | \n| `repomap` | Remap A Repository To Diff User | \n| `gistsSource` | set to true to mirror all Gists Created By You| \n| `gistsStared` | set to true to mirror all Gists Stared By You| \n| `repositoryStared` | set to true to mirror all Repository Stared By You | \n| `repositorySource` | set to true to mirror all Repository Created By You | \n| `repositoryForked` | set to true to mirror all Repository Forked By You | \n\n\n### Example Workflow File\nBelow workflow file triggers when anything is pushed to `main` branch or runs every `Day` or can be triggered manually \nPlease do make sure to setup the **Secrets**\n\u003c!-- START RAW --\u003e\n```yaml\nname: \" ⏳  Gitea Mirror Setup\"\n\non:\n  workflow_dispatch:\n \n  schedule:\n    - cron: 0 0 * * *\n  \n  push:\n    branches:\n      - main\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: varunsridharan/action-gitea-mirror@main\n        name: \" ⏳ Setting Up Mirror\"\n        with:\n          gh_username: ${{ secrets.GH_USERNAME }}\n          gh_accesstoken: ${{ secrets.GH_TOKEN }}\n          gitea_host: ${{ secrets.GITEA_HOST }}\n          gitea_username: ${{ secrets.GITEA_USERNAME }}\n          gitea_accesstoken: ${{ secrets.GITEA_TOKEN }}\n          gitea_gist_prefix: \"gist\"\n          gitea_gist_surfix: \"\"\n          gistsSource: true\n          gistsStared: true\n          repositoryStared: true\n          repositorySource: true\n          repositoryForked: true\n\n```\n\u003c!-- END RAW --\u003e\n\n\u003c!-- START common-footer.mustache --\u003e\n## 📝 Changelog\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n[Checkout CHANGELOG.md](https://github.com/varunsridharan/action-gitea-mirror/blob/main/CHANGELOG.md)\n\n\n## 🤝 Contributing\nIf you would like to help, please take a look at the list of [issues](https://github.com/varunsridharan/action-gitea-mirror/issues/).\n\n\n## 📜  License \u0026 Conduct\n- [**MIT License**](https://github.com/varunsridharan/action-gitea-mirror/blob/main/LICENSE) © [Varun Sridharan](website)\n- [Code of Conduct](https://github.com/varunsridharan/.github/blob/main/CODE_OF_CONDUCT.md)\n\n\n## 📣 Feedback\n- ⭐ This repository if this project helped you! :wink:\n- Create An [🔧 Issue](https://github.com/varunsridharan/action-gitea-mirror/issues/) if you need help / found a bug\n\n\n## 💰 Sponsor\n[I][twitter] fell in love with open-source in 2013 and there has been no looking back since! You can read more about me [here][website].\nIf you, or your company, use any of my projects or like what I’m doing, kindly consider backing me. I'm in this for the long run.\n\n- ☕ How about we get to know each other over coffee? Buy me a cup for just [**$9.99**][buymeacoffee]\n- ☕️☕️ How about buying me just 2 cups of coffee each month? You can do that for as little as [**$9.99**][buymeacoffee]\n- 🔰         We love bettering open-source projects. Support 1-hour of open-source maintenance for [**$24.99 one-time?**][paypal]\n- 🚀         Love open-source tools? Me too! How about supporting one hour of open-source development for just [**$49.99 one-time ?**][paypal]\n\n\u003c!-- Personl Links --\u003e\n[paypal]: https://sva.onl/paypal\n[buymeacoffee]: https://sva.onl/buymeacoffee\n[twitter]: https://sva.onl/twitter/\n[website]: https://sva.onl/website/\n\n\n## Connect \u0026 Say 👋\n- **Follow** me on [👨‍💻 Github][github] and stay updated on free and open-source software\n- **Follow** me on [🐦 Twitter][twitter] to get updates on my latest open source projects\n- **Message** me on [📠 Telegram][telegram]\n- **Follow** my pet on [Instagram][sofythelabrador] for some _dog-tastic_ updates!\n\n\u003c!-- Personl Links --\u003e\n[sofythelabrador]: https://www.instagram.com/sofythelabrador/\n[github]: https://sva.onl/github/\n[twitter]: https://sva.onl/twitter/\n[telegram]: https://sva.onl/telegram/\n\n\n---\n\n\u003cp align=\"center\"\u003e\n\u003ci\u003eBuilt With ♥ By \u003ca href=\"https://sva.onl/twitter\"  target=\"_blank\" rel=\"noopener noreferrer\"\u003eVarun Sridharan\u003c/a\u003e \u003ca href=\"https://en.wikipedia.org/wiki/India\"\u003e\n   \u003cimg src=\"https://cdn.svarun.dev/flag-india.jpg\" width=\"20px\"/\u003e\u003c/a\u003e \u003c/i\u003e \u003cbr/\u003e\u003cbr/\u003e\n   \u003cimg src=\"https://cdn.svarun.dev/codeispoetry.png\"/\u003e\n\u003c/p\u003e\n\n---\n\n\n\u003c!-- END common-footer.mustache --\u003e\n\n\n[gitea]: https://gitea.org\n[ggms]: https://github.com/varunsridharan/github-gitea-mirror","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarunsridharan%2Faction-gitea-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvarunsridharan%2Faction-gitea-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarunsridharan%2Faction-gitea-mirror/lists"}