{"id":26409684,"url":"https://github.com/shreyammaity/copy-paste-action","last_synced_at":"2026-05-22T05:09:30.345Z","repository":{"id":65158448,"uuid":"418054846","full_name":"ShreyamMaity/Copy-Paste-Action","owner":"ShreyamMaity","description":"GitHub Action for copying one markdown file and paste it to another markdown file's specific location.","archived":false,"fork":false,"pushed_at":"2021-10-17T13:58:54.000Z","size":22,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-19T10:02:46.476Z","etag":null,"topics":["ci-cd","copy-paste","deployment","github-actions","markdown","markdown-it-plugin","publishing"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/copy-paste-action","language":null,"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/ShreyamMaity.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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.buymeacoffee.com/shreyam","https://www.paypal.me/shreyammaity"]}},"created_at":"2021-10-17T07:32:42.000Z","updated_at":"2023-11-30T15:04:53.000Z","dependencies_parsed_at":"2023-01-13T15:43:20.813Z","dependency_job_id":null,"html_url":"https://github.com/ShreyamMaity/Copy-Paste-Action","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"10378ce9efdee33e3380691d00a4f0c1e8f5e7ce"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShreyamMaity%2FCopy-Paste-Action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShreyamMaity%2FCopy-Paste-Action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShreyamMaity%2FCopy-Paste-Action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShreyamMaity%2FCopy-Paste-Action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShreyamMaity","download_url":"https://codeload.github.com/ShreyamMaity/Copy-Paste-Action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244097553,"owners_count":20397634,"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":["ci-cd","copy-paste","deployment","github-actions","markdown","markdown-it-plugin","publishing"],"created_at":"2025-03-17T19:35:14.670Z","updated_at":"2026-05-22T05:09:30.316Z","avatar_url":"https://github.com/ShreyamMaity.png","language":null,"funding_links":["https://www.buymeacoffee.com/shreyam","https://www.paypal.me/shreyammaity"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eCOPY PASTE ACTION\u003c/h1\u003e  \n\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n   \u003cimg src=\"https://img.shields.io/badge/language-python-blue?style\"/\u003e\n   \u003cimg src=\"https://img.shields.io/github/license/ShreyamMaity/Copy-Paste-Action\"/\u003e\n   \u003cimg src=\"https://img.shields.io/github/stars/ShreyamMaity/Copy-Paste-Action\"/\u003e\n   \u003cimg src=\"https://img.shields.io/github/forks/ShreyamMaity/Copy-Paste-Action\"/\u003e\n   \u003cimg src=\"https://img.shields.io/static/v1?label=%F0%9F%8C%9F\u0026message=If%20Useful\u0026style=style=flat\u0026color=BC4E99\" alt=\"Star Badge\"/\u003e\n   \u003cimg src=https://visitor-badge.glitch.me/badge?page_id=ShreyamMaity.Copy-Paste-Action\"/\u003e\n\u003c/p\u003e\n\n----\n\n\u003e GitHub Action for copying one markdown file and paste it to another markdown file's specific location.  \n  \n\n\n- This is a [GitHub Action](https://developer.github.com/actions/) to copy one markdown file data and paste it to another markdown file's specific location.\n\n- This action runs in a Docker container and therefore only supports Linux.\n\n## Prep Work\n\n1. You need to update the markdown file(.md) with 2 comments. You can refer [here](#update-your-readme) for updating it.\n2. You'll need a GitHub API Token with `repo` and `user` scope from [here](https://github.com/settings/tokens) if you're running the action.\n   \u003e enabling the `repo` scope seems **DANGEROUS**\u003cbr/\u003e\n   \u003e but this GitHub Action only accesses your repository information and use the api to update the markdown file\n   - You can use [this](#usage) example to work it out\n3. You need to save the GitHub API Token in the repository secrets. You can find that in the Settings of your repository. Be sure to save those as the following.Reffer [here](#secrets) for more info\n    - GitHub Personal Access Token as `TOKEN=\u003cyour github access token\u003e`\n\n  \n\n\n## Usage :\n\nThe following example [workflow step](https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow) will copy the data of the markdown file from specified location inside the repository running the action, to any markdown file with specified location index(by default README.md). If the data already exist at the destination Markdown File, It will not update anything.\n\n```yml\nname: Test Workflow\non: \n  push:\n    branches:\n      - main\n  workflow_dispatch:\njobs:\n  Update-Readme:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Copy Paste Action\n        uses: ShreyamMaity/Copy-Paste-Action@main\n        with:\n          TOKEN: ${{ secrets.TOKEN }}\n          REPOSITORY : 'Your Repository Name'\n          COPY-FILE-LOCATION : './database/db.md'\n          PASTE-FILE-LOCATION : './README.md'\n```\n  \n\n## Update your Readme\n\nAdd a comment to your `markdown file` or `README.md` like this:\n\n```md\n\u003c!--START_SECTION:cp--\u003e\n\u003c!--END_SECTION:cp--\u003e\n```\n\nThese lines will be our entry-points for the copy paste action.\n\n## Secrets\n\n* `token`: (required) GitHub Private Access Token used for the clone/push operations. To create it follow the [GitHub Documentation](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line).\n  \n\n## Options ⚙️\n\nThe following input variable options can/must be configured:\n\n|Input variable|Necessity|Description|\n|--------------------|--------|-----------|\n|`TOKEN`|Required|Your Github Token|\n|`REPOSITORY`|Required|Name of your repository where you are running this github action|\n|`COPY-FILE-LOCATION`|Required|The Specific Location of the markdown file from where you want to copy the data.For example `./file.md` or `./folder/file.md`|\n|`PASTE-FILE-LOCATION`|Required|The Specific Location of the markdown file from where you want to paste the data of copied markdown file.For example `./README.md` or `./folder/file.md`|\n  \n## Examples\n\n- Open this [repository](https://github.com/shreyammaity/student-offers/)\n- This repository has a database.md fie inside Database folder\n- This github action copies the information from database.md file and paste it to README.md file of the Repository\n\n\n## Author\n\nThe Copy Paste GitHub action is written by [Shreyam Maity](https://github.com/ShreyamMaity)\n\n## License\n\nThis project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshreyammaity%2Fcopy-paste-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshreyammaity%2Fcopy-paste-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshreyammaity%2Fcopy-paste-action/lists"}