This action syncs branches including remote repositories.
It uses peter-evans/create-pull-request for creating pull requests.
Note that you need workflow
permission for the token if you copy workflow files of GitHub Actions.
jobs:
sync-branches:
runs-on: ubuntu-22.04
steps:
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- name: Run sync-branches
uses: autowarefoundation/autoware-github-actions/sync-branches@v1
with:
token: ${{ steps.generate-token.outputs.token }}
base-branch: main
sync-target-repository: https://github.com/autowarefoundation/autoware.git
sync-target-branch: main
sync-branch: sync-upstream
pr-title: "chore: sync upstream"
auto-merge-method: merge
Name | Required | Description |
---|---|---|
token | true | The token for pull requests. |
base-branch | true | The base branch of the sync PR. |
sync-pr-branch | true | The branch of the sync PR . |
sync-target-repository | true | The sync target repository. |
sync-target-branch | true | The sync target branch. |
pr-title | true | Refer to peter-evans/create-pull-request . |
pr-labels | false | The same as above. |
pr-assignees | false | The same as above. |
pr-reviewers | false | The same as above. |
auto-merge-method | false | Refer to peter-evans/enable-pull-request-automerge . |
None.