Created
December 27, 2023 13:50
-
-
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:
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: 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