You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ro...@apache.org on 2024/01/08 16:41:46 UTC

(activemq-artemis-examples) branch development updated (2590866 -> b048d17)

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

robbie pushed a change to branch development
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-examples.git


    from 2590866  NO-JIRA: update year in NOTICE file
     new c1ff39d  fix up variable name to reflect actual usage
     new b048d17  update non-main branch step gating to handle pull_request triggered runs different env, behave in way actually intended

The 2 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.


Summary of changes:
 .github/workflows/build.yml | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)


(activemq-artemis-examples) 01/02: fix up variable name to reflect actual usage

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

robbie pushed a commit to branch development
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-examples.git

commit c1ff39dbdbef7412fe5ec6bb1704a2ea7a583a90
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Mon Jan 8 12:15:40 2024 +0000

    fix up variable name to reflect actual usage
---
 .github/workflows/build.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e945033..c19ccdd 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -5,7 +5,7 @@ on:
   pull_request:
   workflow_dispatch:
     inputs:
-      examplesRepoUserOrOrg:
+      examplesRepo:
         description: '(For non-main Examples) Artemis repo'
         required: true
         default: 'apache/activemq-artemis'
@@ -17,7 +17,7 @@ on:
         type: string
 
 env:
-  ARTEMIS_REPO: ${{ inputs.examplesRepoUserOrOrg || 'apache/activemq-artemis' }}
+  ARTEMIS_REPO: ${{ inputs.examplesRepo || 'apache/activemq-artemis' }}
   ARTEMIS_BRANCH: ${{ inputs.examplesRepoBranch || 'main' }}
 
 jobs:


(activemq-artemis-examples) 02/02: update non-main branch step gating to handle pull_request triggered runs different env, behave in way actually intended

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

robbie pushed a commit to branch development
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-examples.git

commit b048d1714c39853c5e66c9b25dc88789036560fb
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Mon Jan 8 16:41:16 2024 +0000

    update non-main branch step gating to handle pull_request triggered runs different env, behave in way actually intended
---
 .github/workflows/build.yml | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c19ccdd..f5d3c8f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -51,7 +51,7 @@ jobs:
           distribution: 'temurin'
 
       - name: Checkout Artemis Repo (non-main Examples)
-        if: ${{ github.ref != 'refs/heads/main' }}
+        if: ${{ (github.event_name == 'pull_request' && github.base_ref != 'main') || (github.event_name != 'pull_request' && github.ref != 'refs/heads/main') }}
         uses: actions/checkout@v3
         with:
           repository: ${{ env.ARTEMIS_REPO }}
@@ -60,7 +60,7 @@ jobs:
 
       - name: Identify Artemis Version (non-main Examples)
         id: identify-artemis-version
-        if: ${{ github.ref != 'refs/heads/main' }}
+        if: ${{ (github.event_name == 'pull_request' && github.base_ref != 'main') || (github.event_name != 'pull_request' && github.ref != 'refs/heads/main') }}
         run: |
           cd activemq-artemis
           CURRENT_ARTEMIS_BUILD_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
@@ -68,14 +68,14 @@ jobs:
           echo "artemis-build-version=${CURRENT_ARTEMIS_BUILD_VERSION}" >> $GITHUB_OUTPUT
 
       - name: Build Artemis (non-main Examples)
-        if: ${{ github.ref != 'refs/heads/main' }}
+        if: ${{ (github.event_name == 'pull_request' && github.base_ref != 'main') || (github.event_name != 'pull_request' && github.ref != 'refs/heads/main') }}
         run: |
           cd activemq-artemis
           mvn -s ../activemq-artemis-examples/.github/maven-settings.xml install -DskipTests -T1C
 
       - name: Identify Examples Version (non-main Examples)
         id: identify-examples-version
-        if: ${{ github.ref != 'refs/heads/main' }}
+        if: ${{ (github.event_name == 'pull_request' && github.base_ref != 'main') || (github.event_name != 'pull_request' && github.ref != 'refs/heads/main') }}
         run: |
           cd activemq-artemis-examples
           sed -i "/<parent>/,/<version>/ s~<version>[^<]*~<version>${{ steps.identify-artemis-version.outputs.artemis-build-version }}~g" ./pom.xml
@@ -84,7 +84,7 @@ jobs:
           echo "examples-build-version=${CURRENT_EXAMPLES_BUILD_VERSION}" >> $GITHUB_OUTPUT
 
       - name: Set Examples Version to Artemis Version (non-main Examples)
-        if: ${{ github.ref != 'refs/heads/main' && steps.identify-artemis-version.outputs.artemis-build-version != steps.identify-examples-version.outputs.examples-build-version }}
+        if: ${{ ((github.event_name == 'pull_request' && github.base_ref != 'main') || (github.event_name != 'pull_request' && github.ref != 'refs/heads/main')) && steps.identify-artemis-version.outputs.artemis-build-version != steps.identify-examples-version.outputs.examples-build-version }}
         run: |
           cd activemq-artemis-examples
           ./scripts/update-examples-version.sh ${{ steps.identify-artemis-version.outputs.artemis-build-version }}
@@ -130,7 +130,7 @@ jobs:
           distribution: 'temurin'
 
       - name: Checkout Artemis Repo (non-main Examples)
-        if: ${{ github.ref != 'refs/heads/main' }}
+        if: ${{ (github.event_name == 'pull_request' && github.base_ref != 'main') || (github.event_name != 'pull_request' && github.ref != 'refs/heads/main') }}
         uses: actions/checkout@v3
         with:
           repository: ${{ env.ARTEMIS_REPO }}
@@ -139,7 +139,7 @@ jobs:
 
       - name: Identify Artemis Version (non-main Examples)
         id: identify-artemis-version
-        if: ${{ github.ref != 'refs/heads/main' }}
+        if: ${{ (github.event_name == 'pull_request' && github.base_ref != 'main') || (github.event_name != 'pull_request' && github.ref != 'refs/heads/main') }}
         run: |
           cd activemq-artemis
           CURRENT_ARTEMIS_BUILD_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
@@ -147,14 +147,14 @@ jobs:
           echo "artemis-build-version=${CURRENT_ARTEMIS_BUILD_VERSION}" >> $GITHUB_OUTPUT
 
       - name: Build Artemis (non-main Examples)
-        if: ${{ github.ref != 'refs/heads/main' }}
+        if: ${{ (github.event_name == 'pull_request' && github.base_ref != 'main') || (github.event_name != 'pull_request' && github.ref != 'refs/heads/main') }}
         run: |
           cd activemq-artemis
           mvn -s ../activemq-artemis-examples/.github/maven-settings.xml install -DskipTests -T1C
 
       - name: Identify Examples Version (non-main Examples)
         id: identify-examples-version
-        if: ${{ github.ref != 'refs/heads/main' }}
+        if: ${{ (github.event_name == 'pull_request' && github.base_ref != 'main') || (github.event_name != 'pull_request' && github.ref != 'refs/heads/main') }}
         run: |
           cd activemq-artemis-examples
           sed -i "/<parent>/,/<version>/ s~<version>[^<]*~<version>${{ steps.identify-artemis-version.outputs.artemis-build-version }}~g" ./pom.xml
@@ -163,7 +163,7 @@ jobs:
           echo "examples-build-version=${CURRENT_EXAMPLES_BUILD_VERSION}" >> $GITHUB_OUTPUT
 
       - name: Set Examples Version to Artemis Version (non-main Examples)
-        if: ${{ github.ref != 'refs/heads/main' && steps.identify-artemis-version.outputs.artemis-build-version != steps.identify-examples-version.outputs.examples-build-version }}
+        if: ${{ ((github.event_name == 'pull_request' && github.base_ref != 'main') || (github.event_name != 'pull_request' && github.ref != 'refs/heads/main')) && steps.identify-artemis-version.outputs.artemis-build-version != steps.identify-examples-version.outputs.examples-build-version }}
         run: |
           cd activemq-artemis-examples
           ./scripts/update-examples-version.sh ${{ steps.identify-artemis-version.outputs.artemis-build-version }}