You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2021/03/12 06:28:42 UTC

[isis-app-simpleapp] branch jdo updated: minor improvements to actions

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

danhaywood pushed a commit to branch jdo
in repository https://gitbox.apache.org/repos/asf/isis-app-simpleapp.git


The following commit(s) were added to refs/heads/jdo by this push:
     new 336d2af  minor improvements to actions
336d2af is described below

commit 336d2afd6cae7f1049c1a1515b41170c18cc194b
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Fri Mar 12 06:28:25 2021 +0000

    minor improvements to actions
---
 .github/workflows/mavenJdk8.yml | 26 +++++++++++++++++++++-----
 1 file changed, 21 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/mavenJdk8.yml b/.github/workflows/mavenJdk8.yml
index 6600221..ae1de38 100644
--- a/.github/workflows/mavenJdk8.yml
+++ b/.github/workflows/mavenJdk8.yml
@@ -19,7 +19,7 @@ on:
 
 jobs:
   build:
-
+    name: Build, Test
     runs-on: ubuntu-latest
 
     steps:
@@ -46,7 +46,8 @@ jobs:
           ${{ runner.os }}-build-
           ${{ runner.os }}-
 
-    - name: Prepare Build Versions
+    - name: Calculate $REVISION
+      id: revision
       shell: bash
       run: |
         ON_SNAPSHOT=$(echo $GITHUB_REF | grep SNAPSHOT)
@@ -59,6 +60,21 @@ jobs:
         BASELINE=$(cat pom.xml | grep "<version>" | head -1 | awk -F'>' '{print $2}' | awk -F'<' '{print $1}')
         SHA_ID=$(echo $GITHUB_SHA | cut -c1-8)
         REVISION=${BASELINE}.$(date +%Y%m%d-%H%M)-${SHA_ID}
+        echo "##[set-output name=revision;]${REVISION}"
+
+    - name: Share $REVISION as Environment Variable
+      run: echo "REVISION=${{ steps.revision.outputs.revision }}" >> $GITHUB_ENV
+
+    - name: Print $REVISION
+      shell: bash
+      run: |
+        echo ==============  ENV  =================
+        echo REVISION            \: $REVISION
+        echo ======================================
+
+    - name: Update Maven version
+      shell: bash
+      run: |
         mvn versions:set -DnewVersion=$REVISION
 
     - name: Print pom.xml
@@ -75,7 +91,7 @@ jobs:
 #    - name: Build and Push Docker Image
 #      shell: bash
 #      run: |
-#        export REVISION=...
-#        export DOCKER_REGISTRY_USERNAME
-#        export DOCKER_REGISTRY_PASSWORD
 #        mvn -pl webapp -Ddocker jib:build
+#      env:
+#        DOCKER_REGISTRY_USERNAME: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
+#        DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}