{"id":22544333,"url":"https://github.com/sator-imaging/copy-to-another-repository","last_synced_at":"2026-04-30T00:31:53.909Z","repository":{"id":41588640,"uuid":"486939915","full_name":"sator-imaging/Copy-to-Another-Repository","owner":"sator-imaging","description":"GitHub Actions to copy selected file to another repository and create Pull Request (PR).","archived":false,"fork":false,"pushed_at":"2022-08-07T15:07:17.000Z","size":93,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-03-15T04:06:42.722Z","etag":null,"topics":["actions","continuous-delivery","github","github-actions"],"latest_commit_sha":null,"homepage":"","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/sator-imaging.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2022-04-29T11:03:56.000Z","updated_at":"2023-08-22T05:34:02.000Z","dependencies_parsed_at":"2023-01-04T12:23:53.076Z","dependency_job_id":null,"html_url":"https://github.com/sator-imaging/Copy-to-Another-Repository","commit_stats":{"total_commits":128,"total_committers":1,"mean_commits":128.0,"dds":0.0,"last_synced_commit":"a835d099edf1d885c60bc7370a8d7cb1dd273cd1"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sator-imaging%2FCopy-to-Another-Repository","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sator-imaging%2FCopy-to-Another-Repository/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sator-imaging%2FCopy-to-Another-Repository/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sator-imaging%2FCopy-to-Another-Repository/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sator-imaging","download_url":"https://codeload.github.com/sator-imaging/Copy-to-Another-Repository/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245991878,"owners_count":20706196,"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","continuous-delivery","github","github-actions"],"created_at":"2024-12-07T14:06:58.130Z","updated_at":"2026-04-30T00:31:53.883Z","avatar_url":"https://github.com/sator-imaging.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Actions: Copy to Another Repository\n\n`Copy-to-Another-Repository` is reusable workflow to copy selected file to another repository and create Pull Request (PR) to merge.\n\n\n\n## Usage\n\nCreate GitHub Actions like as follows.\nSee [action.yml](https://github.com/sator-imaging/Copy-to-Another-Repository/blob/main/action.yml) for further details.\n\n\n```yaml   {% raw %}\nname: GitHub-Actions-Name\n\non:\n  workflow_dispatch: # Allows you to run this workflow manually from the Actions tab\n  push:\n    branches: [ main ]\n    branches-ignore:\n    tags:\n    tags-ignore:\n    paths:\n      - 'README.md'  # limit trigger to the target-filepath.\n                     # It's not elegant to set same value in two options but\n                     # there is no way to retrieve this value in composite action.\n\njobs:\n  main:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: sator-imaging/Copy-to-Another-Repository@v1\n        with:\n\n          # required parameters\n          target-filepath: 'README.md'      # file path to copy\n          output-branch: 'main or master'   # branch name to create pull request\n          output-repo: 'Owner/AnotherRepository'\n          git-token: ${{ secrets.TOKEN_TO_ACCESS_OUTPUT_REPO }}\n          \n          # optional parameters and default values\n          commit-message-prefix: '[actions] '   # followed by source repository and file name\n          output-directory: \"${{ github.event.repository.name }}\"   # copy file into sub directory\n          pr-branch-prefix: \"actions/${{ github.event.repository.name }}\"   # branch name prefix followed by date and time\n          pr-title: \"GitHub Actions: ${{ github.event.repository.name }}\"   # followed by source repository and file name\n          pr-message: \"${{ github.workflow }} on ${{ github.server_url }}/${{ github.repository }}\"   # followed by action repository\n          git-name: \"github-actions[bot]\"   # your name can be set by ${{ github.actor }}\n          git-email: 'github-actions[bot]@users.noreply.github.com'   # associated user icon is shown in commit page\n\n# {% endraw %}\n```\n\n\n\n## Learning Resources\n\n- [Metadata syntax for GitHub Actions](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions)\n  - [`runs` for composite actions](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-composite-actions)\n- [Contexts](https://docs.github.com/en/actions/learn-github-actions/contexts)\n- [Environment variables](https://docs.github.com/en/actions/learn-github-actions/environment-variables)\n  - [Default environment variables](https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables)\n- [Webhook events and payloads](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads)\n- [Workflow commands for GitHub Actions](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions)\n\n\n\n## Copyright\n\nCopyright \u0026copy; 2022 Sator Imaging, all rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsator-imaging%2Fcopy-to-another-repository","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsator-imaging%2Fcopy-to-another-repository","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsator-imaging%2Fcopy-to-another-repository/lists"}