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 committed Dec 9, 2024
1 parent 5f397e3 commit 7da4140
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 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,12 @@ jobs:
branch: "update-ci/{{ branch }}"
base: "{{ branch }}"
delete-branch: true
{%- if plugin_app_label == "file" %}
- name: "Experiment: Mark PR automerge"
run: |
gh pr merge --auto "${{ steps.create_pr.outputs.pull-request-number }}"
env:
token: "{{ '${{ secrets.RELEASE_TOKEN }}' }}"
{%- endif %}
{%- endfor %}
...

0 comments on commit 7da4140

Please sign in to comment.