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/11 23:05:50 UTC
[isis-app-simpleapp] branch jdo-SNAPSHOT created (now 629ff8f)
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a change to branch jdo-SNAPSHOT
in repository https://gitbox.apache.org/repos/asf/isis-app-simpleapp.git.
at 629ff8f wip, use latest version for snapshot
This branch includes the following new commits:
new 629ff8f wip, use latest version for snapshot
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[isis-app-simpleapp] 01/01: wip, use latest version for snapshot
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch jdo-SNAPSHOT
in repository https://gitbox.apache.org/repos/asf/isis-app-simpleapp.git
commit 629ff8f4fcd5c9b47c24aa97c5cc88fa6b8fb971
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Mar 11 23:05:21 2021 +0000
wip, use latest version for snapshot
---
.github/workflows/mavenJdk8.yml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/.github/workflows/mavenJdk8.yml b/.github/workflows/mavenJdk8.yml
index 9e621a9..49e18ba 100644
--- a/.github/workflows/mavenJdk8.yml
+++ b/.github/workflows/mavenJdk8.yml
@@ -26,6 +26,11 @@ jobs:
- name: Checkout current repo
uses: actions/checkout@v2.3.3
+ - name: Extract branch name
+ shell: bash
+ run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
+ id: extract_branch
+
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
@@ -49,6 +54,12 @@ jobs:
- name: Prepare Build Versions
shell: bash
run: |
+ ON_SNAPSHOT=$(echo $GITHUB_REF | grep SNAPSHOT)
+ if [[ $ON_SNAPSHOT != "" ]]
+ then
+ export REVISION=$(curl -X GET "https://nexus.incode.work/service/rest/v1/search?sort=version&repository=nightly-builds&group=org.apache.isis.app&name=isis-app-starter-parent" -H "accept: application/json" -s | jq '.items[0].version' | sed 's/"//g')
+ mvn versions:update-parent -DparentVersion=$REVISION
+ fi
BASELINE=$(cat pom.xml | grep "<version>" | head -1 | awk -F'>' '{print $2}' | awk -F'<' '{print $1}')
SHA_ID=$(echo $GITHUB_SHA | cut -c1-8)
export REVISION=${BASELINE}.$(date +%Y%m%d-%H%M)-${SHA_ID}