🤖 Update Dependencies (#391) #114
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync main and latest | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
sync-branches: | |
runs-on: ubuntu-latest | |
name: Syncing branches | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set git config user | |
run: git config user.email "[email protected]" && git config user.name "compose-devrel-github-bot" | |
- name: Merge main into latest | |
run: git fetch && git switch latest && git merge -s ours origin/main --allow-unrelated-histories | |
- name: Create pull request | |
id: cpr | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.PAT }} | |
commit-message: 🤖 Sync main to latest | |
committer: compose-devrel-github-bot <[email protected]> | |
author: compose-devrel-github-bot <[email protected]> | |
signoff: false | |
branch: bot-sync-main | |
delete-branch: true | |
title: '🤖 Sync main to latest' | |
body: 'Update `latest` with `main`' | |
reviewers: ${{ github.actor }} |