{"id":16497260,"url":"https://github.com/guillaumefalourd/git-commit-push","last_synced_at":"2025-03-16T18:32:10.707Z","repository":{"id":41370150,"uuid":"419815123","full_name":"GuillaumeFalourd/git-commit-push","owner":"GuillaumeFalourd","description":"GitHub Action to commit \u0026 push changes made in workflows :octocat:","archived":false,"fork":false,"pushed_at":"2024-10-30T06:33:52.000Z","size":795,"stargazers_count":14,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-30T07:20:06.459Z","etag":null,"topics":["all-os-supported","bash","commit","git","github-action","hacktoberfest","push"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/git-commit-push-action","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GuillaumeFalourd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"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}},"created_at":"2021-10-21T17:21:54.000Z","updated_at":"2024-10-30T06:33:50.000Z","dependencies_parsed_at":"2023-12-22T03:59:18.235Z","dependency_job_id":"b235948a-0603-49f0-a7eb-a0f575f8bcf2","html_url":"https://github.com/GuillaumeFalourd/git-commit-push","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fgit-commit-push","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fgit-commit-push/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fgit-commit-push/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fgit-commit-push/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GuillaumeFalourd","download_url":"https://codeload.github.com/GuillaumeFalourd/git-commit-push/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826783,"owners_count":20354220,"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":["all-os-supported","bash","commit","git","github-action","hacktoberfest","push"],"created_at":"2024-10-11T14:38:58.874Z","updated_at":"2025-03-16T18:32:08.195Z","avatar_url":"https://github.com/GuillaumeFalourd.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Commit \u0026 Push action\n\n[![Action test on Ubuntu](https://github.com/GuillaumeFalourd/git-commit-push/actions/workflows/ubuntu_action_test.yml/badge.svg)](https://github.com/GuillaumeFalourd/git-commit-push/actions/workflows/ubuntu_action_test.yml) [![Action test on MacOS](https://github.com/GuillaumeFalourd/git-commit-push/actions/workflows/macos_action_test.yml/badge.svg)](https://github.com/GuillaumeFalourd/git-commit-push/actions/workflows/macos_action_test.yml) [![Action test on Windows](https://github.com/GuillaumeFalourd/git-commit-push/actions/workflows/windows_action_test.yml/badge.svg)](https://github.com/GuillaumeFalourd/git-commit-push/actions/workflows/windows_action_test.yml)\n\nGitHub Action to commit \u0026 push changes made in workflows :octocat:\n\n\u003cimg width=\"1253\" alt=\"Screenshot 2021-10-21 at 15 40 50\" src=\"https://user-images.githubusercontent.com/22433243/138337505-49e66480-e084-4611-99f3-594023eab19c.png\"\u003e\n\n_**Note**: This action is supported on **all runners** operating systems (`ubuntu`, `macos`, `windows`)_\n\n* * *\n\n## 📚 Usage\n\n[![Public workflows that use this action.](https://img.shields.io/endpoint?url=https%3A%2F%2Fapi-endbug.vercel.app%2Fapi%2Fgithub-actions%2Fused-by%3Faction%3DGuillaumeFalourd%2Fgit-commit-push%26badge%3Dtrue)](https://github.com/search?o=desc\u0026q=GuillaumeFalourd+git-commit-push+path%3A.github%2Fworkflows+language%3AYAML\u0026s=\u0026type=Code)\n\n### ⚠️ Requirements\n\n- The [`actions/checkout`](https://github.com/marketplace/actions/checkout) is mandatory to use this action, as it will be necessary to access the repository files.\n\n### `1️⃣ Minimal`: Commit and Push with `default` parameters\n\n```yaml\n    steps:\n      - uses: actions/checkout@v4\n      # [...] --\u003e steps with actions or commands updating repository files\n      - uses: GuillaumeFalourd/git-commit-push@v1.3\n```\n\n### `2️⃣ Full`: Commit and Push with `customized` parameters\n\n```yaml\n    steps:\n      - uses: actions/checkout@v4\n      # [...] --\u003e steps with actions or commands updating repository files\n      - uses: GuillaumeFalourd/git-commit-push@v1.3\n        with:\n          email: ${{ github.actor }}@users.noreply.github.com\n          name: ${{ github.actor }}\n          commit_message: your_message\n          target_branch: target_branch_name\n          files: file1 file2 directory1 directory2/file3\n          remote_repository: https://github.com/owner/another_repository\n          access_token: ${{ github.token }}\n          force: true\n          empty: true\n          tags: true\n```\n\n### Known Issue\n\nWhen pushing to the same repository, the workflow may return the following error using the action:\n\n```\nremote: Permission to \u003cowner\u003e/\u003crepository\u003e.git denied to github-actions[bot].\nfatal: unable to access 'https://github.com/\u003cowner\u003e/\u003crepository\u003e/': The requested URL returned error: 403\n```\n\nThis can be resolved by adding `persist-credentials: false` and `fetch-depth: 0` to the workflow configurations when using the `actions/checkout`.\n\n```yaml\n     - uses: actions/checkout@v4\n       with:\n          persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of the personal access token.\n          fetch-depth: 0  # otherwise, there would be errors pushing refs to the destination repository.\n     - uses: GuillaumeFalourd/git-commit-push@v1.3\n       with:\n          email: ${{ github.actor }}@users.noreply.github.com\n          name: ${{ github.actor }}\n          commit_message: your_message\n          target_branch: target_branch_name\n          files: file1 file2 directory1 directory2/file3\n          remote_repository: https://github.com/owner/another_repository\n          access_token: ${{ github.token }}\n          force: true\n          empty: true\n          tags: true\n```\n\n* * *\n\n## ▶️ Action Inputs\n\nField | Mandatory | Default Value | Observation\n------------ | ------------  | ------------- | -------------\n**email** | NO | `${{ github.actor }}@users.noreply.github.com` | Github user email \u003cbr/\u003e _e.g: `octocat@github.com`_\n**name** | NO | `${{ github.actor }}` | Github username \u003cbr/\u003e _e.g: `octocat`_\n**commit_message** | NO | `Commit performed using Push and Commit action` | Commit message\n**target_branch** | NO | `${{ github.ref }}` | Branch to push the changes back\n**files** | NO | `.` | Files to add separated by space \u003cbr/\u003e _e.g: `file1 file2 directory1 directory2/file3`_\n**remote_repository** | NO | `origin` | Repository url to push the code\n**access_token** | NO | `${{ github.token }}` | [Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) is necessary if push to another repository\n**force** | NO | `0` | Whether to perform force push\n**empty** | NO | `0` | Whether to allow empty commit\n**tags** | NO | `0` | Whether to use --tags\n\n* * *\n\n## 🤝 Contributing\n\n☞ [Guidelines](https://github.com/GuillaumeFalourd/git-commit-push/blob/main/CONTRIBUTING.md)\n\n## 🏅 Licensed\n\n☞ This repository uses the [Apache License 2.0](https://github.com/GuillaumeFalourd/git-commit-push/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguillaumefalourd%2Fgit-commit-push","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguillaumefalourd%2Fgit-commit-push","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguillaumefalourd%2Fgit-commit-push/lists"}