{"id":18593089,"url":"https://github.com/embraser01/update-git-branch-action","last_synced_at":"2025-07-07T07:05:23.555Z","repository":{"id":65157647,"uuid":"182425303","full_name":"Embraser01/update-git-branch-action","owner":"Embraser01","description":"Action to update a branch based on the current commit","archived":false,"fork":false,"pushed_at":"2019-10-15T16:50:40.000Z","size":35172,"stargazers_count":12,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T14:09:30.781Z","etag":null,"topics":["github-actions","workflow"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Embraser01.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":"2019-04-20T15:55:57.000Z","updated_at":"2023-10-09T12:15:08.000Z","dependencies_parsed_at":"2023-01-04T12:33:21.829Z","dependency_job_id":null,"html_url":"https://github.com/Embraser01/update-git-branch-action","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Embraser01/update-git-branch-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Embraser01%2Fupdate-git-branch-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Embraser01%2Fupdate-git-branch-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Embraser01%2Fupdate-git-branch-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Embraser01%2Fupdate-git-branch-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Embraser01","download_url":"https://codeload.github.com/Embraser01/update-git-branch-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Embraser01%2Fupdate-git-branch-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264032246,"owners_count":23546799,"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":["github-actions","workflow"],"created_at":"2024-11-07T01:11:21.773Z","updated_at":"2025-07-07T07:05:23.503Z","avatar_url":"https://github.com/Embraser01.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Update git branch action\n\nA GitHub Action that update a specific branch to the current commit running the action.\n\n## Usage\n\nThis GitHub Action update a branch. Here's an example workflow that update a staging branch at\neach commit on master you push a commit on master:\n\n```yaml\non: push\nname: Update prod branch on release\njobs:\n  updateBranch:\n    name: Update staging branch\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@master\n    - uses: Embraser01/update-git-branch-action@v1.0.0\n      if: github.ref == 'refs/heads/master'\n      with:\n        branch: staging\n        force: 1 # To push-force to the branch\n        githubToken: ${{ secrets.PAT_TOKEN }} # Github Token\n```\n\n## Github token\n\nIf you want to trigger another workflow, you'll need to generate a Personal Access Token\n[here](https://github.com/settings/tokens). Pushing a commit with the `GITHUB_TOKEN` env\nvariable will not trigger other workflows.\n\n## Tags\n\nWhen a tag is pushed, the action will check if the tag is the HEAD of a protected branch. It\nuses the\n[Github API](https://developer.github.com/v3/repos/commits/#list-branches-for-head-commit). It\ncould fail if a commit was pushed before the action is started.\n\n## Options\n\n- `branch`: The branch to update (**required**).\n- `force`: Indicates whether to force the update or to make sure the update is a fast-forward\n  update. Leaving this out or setting it to `false` will make sure you're not overwriting work.\n- `githubToken`: Github token required to push the commit to the branch.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembraser01%2Fupdate-git-branch-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fembraser01%2Fupdate-git-branch-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembraser01%2Fupdate-git-branch-action/lists"}