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 2022/11/08 13:09:28 UTC

[camel-quarkus] 03/07: Fix GitHub actions deprecation warnings

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

jamesnetherton pushed a commit to branch 2.13.x
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 8aab8a8b74a1b61f89dd36481fb8118852281ac4
Author: James Netherton <ja...@gmail.com>
AuthorDate: Fri Nov 4 09:01:35 2022 +0000

    Fix GitHub actions deprecation warnings
---
 .github/workflows/camel-master-cron.yaml   | 2 +-
 .github/workflows/ci-build.yaml            | 2 +-
 .github/workflows/quarkus-master-cron.yaml | 2 +-
 tooling/scripts/report-build-status.groovy | 5 +++--
 4 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/camel-master-cron.yaml b/.github/workflows/camel-master-cron.yaml
index 98834b42ea..d057d8e059 100644
--- a/.github/workflows/camel-master-cron.yaml
+++ b/.github/workflows/camel-master-cron.yaml
@@ -86,7 +86,7 @@ jobs:
         id: set-native-matrix
         run: |
           CATEGORIES=$(yq -M -N -I 0 -o=json e 'keys' tooling/scripts/test-categories.yaml | tr '"' "'")
-          echo "::set-output name=matrix::{'category': ${CATEGORIES}}"
+          echo "matrix={'category': ${CATEGORIES}}" >> $GITHUB_OUTPUT
       - name: Report Build Failure
         if: failure() || cancelled()
         run: |
diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml
index d3a4cf03fe..abe2ef3492 100644
--- a/.github/workflows/ci-build.yaml
+++ b/.github/workflows/ci-build.yaml
@@ -115,7 +115,7 @@ jobs:
         id: set-native-matrix
         run: |
           CATEGORIES=$(yq -M -N -I 0 -o=json e 'keys' tooling/scripts/test-categories.yaml | tr '"' "'")
-          echo "::set-output name=matrix::{'category': ${CATEGORIES}}"
+          echo "matrix={'category': ${CATEGORIES}}" >> $GITHUB_OUTPUT
 
   native-tests:
     name: Native Tests - ${{matrix.category}}
diff --git a/.github/workflows/quarkus-master-cron.yaml b/.github/workflows/quarkus-master-cron.yaml
index 9c1f6c69f3..5195a8d8e4 100644
--- a/.github/workflows/quarkus-master-cron.yaml
+++ b/.github/workflows/quarkus-master-cron.yaml
@@ -95,7 +95,7 @@ jobs:
         id: set-native-matrix
         run: |
           CATEGORIES=$(yq -M -N -I 0 -o=json e 'keys' tooling/scripts/test-categories.yaml | tr '"' "'")
-          echo "::set-output name=matrix::{'category': ${CATEGORIES}}"
+          echo "matrix={'category': ${CATEGORIES}}" >> $GITHUB_OUTPUT
       - name: Report Build Failure
         if: failure() || cancelled()
         run: |
diff --git a/tooling/scripts/report-build-status.groovy b/tooling/scripts/report-build-status.groovy
index 3eaeff77ca..8cd6231f3b 100644
--- a/tooling/scripts/report-build-status.groovy
+++ b/tooling/scripts/report-build-status.groovy
@@ -95,7 +95,7 @@ if (STATUS == "failure") {
 if (STATUS == "verify") {
     if (Utils.workflowHasPreviousFailures(issue, BUILD_ID)) {
         println("Overall build status is: failure")
-        println "::set-output name=overall_build_status::failure"
+        new File(System.getenv("GITHUB_OUTPUT")).append("overall_build_status=failure")
         return
     } else {
         if (issue.getState() == GHIssueState.OPEN) {
@@ -109,5 +109,6 @@ if (STATUS == "verify") {
             println("Comment added on issue ${issue.getHtmlUrl()} - ${comment.getHtmlUrl()}, the issue has also been closed")
         }
     }
-    println "::set-output name=overall_build_status::success"
+
+    new File(System.getenv("GITHUB_OUTPUT")).append("overall_build_status=success")
 }