Skip to content

Commit

Permalink
Experiment with automerge on ci update
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellweg authored and ggainey committed Dec 9, 2024
1 parent cedf4b0 commit 4d4b717
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions templates/github/.github/workflows/update_ci.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:

- name: "Create Pull Request for CI files"
uses: "peter-evans/create-pull-request@v6"
{%- if plugin_app_label == "file" %}
id: "create_pr"
{%- endif %}
with:
token: "{{ '${{ secrets.RELEASE_TOKEN }}' }}"
path: "{{ plugin_name }}"
Expand All @@ -52,5 +55,13 @@ jobs:
branch: "update-ci/{{ branch }}"
base: "{{ branch }}"
delete-branch: true
{%- if plugin_app_label == "file" %}
- name: "Experiment: Mark PR automerge"
run: |
gh pr merge --rebase --auto "${{ steps.create_pr.outputs.pull-request-number }}"
env:
token: "{{ '${{ secrets.RELEASE_TOKEN }}' }}"
continue-on-error: true
{%- endif %}
{%- endfor %}
...

0 comments on commit 4d4b717

Please sign in to comment.