File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,13 +104,14 @@ jobs:
104104 name : dsl-${{ matrix.sdk }}
105105 path : plugins/swagger-contract-testing/skills/pactflow/references/
106106
107- commit :
108- name : Commit updated DSLs
107+ pull-request :
108+ name : Open PR for updated DSLs
109109 needs : generate
110110 if : ${{ !cancelled() }}
111111 runs-on : ubuntu-latest
112112 permissions :
113113 contents : write
114+ pull-requests : write
114115 steps :
115116 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
116117
@@ -121,12 +122,13 @@ jobs:
121122 merge-multiple : true
122123 path : plugins/swagger-contract-testing/skills/pactflow/references/
123124
124- - name : Commit and push if changed
125- run : |
126- git config user.name "github-actions[bot]"
127- git config user.email "github-actions[bot]@users.noreply.github.com"
128- git add plugins/swagger-contract-testing/skills/pactflow/references/
129- if ! git diff --staged --quiet; then
130- git commit -m "chore: regenerate DSL references"
131- git push
132- fi
125+ - name : Open pull request if changed
126+ uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
127+ with :
128+ commit-message : " chore: regenerate DSL references"
129+ branch : chore/regenerate-dsl-references
130+ delete-branch : true
131+ title : " chore: regenerate DSL references"
132+ body : |
133+ Auto-generated by the [Sync Pact SDK DSLs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) workflow.
134+ labels : automated
You can’t perform that action at this time.
0 commit comments