You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rz...@apache.org on 2022/02/10 06:06:27 UTC

[tomee] branch master updated: Introduces additional GitHub actions steps to automatically create a PR if we detect changes after BOM re-generation

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

rzo1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/master by this push:
     new f8f4de6  Introduces additional GitHub actions steps to automatically create a PR if we detect changes after BOM re-generation
f8f4de6 is described below

commit f8f4de6b4dc883099b1cc06ac26efde3d9ece47c
Author: Richard Zowalla <rz...@apache.org>
AuthorDate: Thu Feb 10 07:06:13 2022 +0100

    Introduces additional GitHub actions steps to automatically create a PR if we detect changes after BOM re-generation
---
 .github/workflows/main.yml | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index de39d69..df019ab 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -14,11 +14,6 @@ jobs:
     runs-on: ubuntu-latest
 
     steps:
-    - name: Set git to use LF
-      run: |
-        git config --global core.autocrlf false
-        git config --global core.eol lf
-
     - uses: actions/checkout@v2
     - name: Set up JDK 1.8
       uses: actions/setup-java@v1
@@ -40,6 +35,10 @@ jobs:
       env:
         MAVEN_OPTS: -Xmx2048m
 
+      # We have some LF vs CRLF files from the Tomcat ZIPs, so we need to convert them to avoid diffs in git
+    - name: Convert Config Files in BOM Module from CRLF to LF
+      run: find ./boms -type f -exec sed -i -e 's/\r$//' {} \;
+
     - name: Create Pull Request after BOM Regeneration
       uses: peter-evans/create-pull-request@v3
       with:
@@ -53,7 +52,7 @@ jobs:
         delete-branch: true
         title: "Regenerated BOMs after dependency upgrades"
         body: |
-          Found some uncommited changes (BOM regeneration) after running build on TomEE master
+          Found some uncommited changes (from BOM regeneration) after running build on TomEE master
         labels: |
           dependencies
-        assignees: jeanouii,jgallimore,rzo1
+        assignees: cesarhernandezgt,dblevins,jeanouii,jgallimore,rzo1
\ No newline at end of file