You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2020/09/19 12:09:48 UTC

[camel] 01/01: CAMEL-15556: Create automated PR for regen

This is an automated email from the ASF dual-hosted git repository.

janbednar pushed a commit to branch regen_bot
in repository https://gitbox.apache.org/repos/asf/camel.git

commit fc12fe2cd132ccc009967bd53aec952a7144404b
Author: Jan Bednář <ma...@janbednar.eu>
AuthorDate: Sat Sep 19 14:06:21 2020 +0200

    CAMEL-15556: Create automated PR for regen
---
 .github/workflows/master-push-build.yml | 28 ++++++++++++++++++----------
 1 file changed, 18 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/master-push-build.yml b/.github/workflows/master-push-build.yml
index 2340262..d1156b8 100644
--- a/.github/workflows/master-push-build.yml
+++ b/.github/workflows/master-push-build.yml
@@ -28,7 +28,7 @@ jobs:
       matrix:
         java: [ '1.8' ]
     steps:
-      - uses: actions/checkout@v1
+      - uses: actions/checkout@v2
       - name: Set up JDK ${{ matrix.java }}
         uses: actions/setup-java@v1
         with:
@@ -41,12 +41,20 @@ jobs:
           restore-keys: ${{ runner.os }}-m2
       - name: mvn sourcecheck
         run: ./mvnw -V --no-transfer-progress -Psourcecheck -Dcheckstyle.failOnViolation=true -DskipTests checkstyle:checkstyle verify
-      - name: Check if there are uncommited changes
-        id: changes
-        uses: bedlaj/has-changes-action@camel
-      - name: Fail if git tree is dirty
-        if: steps.changes.outputs.changed == 1
-        run: |
-          echo "Maven build will override some files, which are not commited as part of this PR. Please run maven build and commit generated sources."
-          echo "${{ steps.changes.outputs.changes }}"
-          exit 1
\ No newline at end of file
+      - name: Create Pull Request
+        uses: peter-evans/create-pull-request@v3
+        with:
+          token: ${{ secrets.GITHUB_TOKEN }}
+          commit-message: "Regen for commit ${{ github.sha }}"
+          committer: GitHub <no...@github.com>
+          author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
+          signoff: true
+          branch: regen_bot
+          title: "Generated sources regen"
+          body: |
+            Regen bot :robot: found some uncommited changes after running build on :camel: master.
+            Please do not delete `regen_bot` branch after merge/rebase.
+          labels: |
+            regen
+            automated pr
+          assignees: oscerd
\ No newline at end of file