Skip to content

Instantly share code, notes, and snippets.

@hugoalmeidahh
Created December 27, 2023 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugoalmeidahh/a828cc358b3344e10197a093a0340eda to your computer and use it in GitHub Desktop.
Save hugoalmeidahh/a828cc358b3344e10197a093a0340eda to your computer and use it in GitHub Desktop.
exemplo básico de como configurar automatização de PR no workflow do GitHub Actions:
name: Automatizar PR da Develop para Main
on:
push:
branches:
- develop
jobs:
create-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Abrir Pull Request
uses: repo-sync/pull-request@v2
with:
destination_branch: "main"
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_title: "Atualização da Main"
pr_body: "Merge automático da branch Develop para Main."
- name: Merge automático
uses: pascalgn/automerge-action@v0.14.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MERGE_LABELS: "automerge,!wip"
MERGE_METHOD: "merge"
MERGE_COMMIT_MESSAGE: "Merge automático via GitHub Actions"
MERGE_RETRIES: "6"
MERGE_RETRY_SLEEP: "10000"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment