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

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


The following commit(s) were added to refs/heads/main by this push:
     new fc19589568 Fix GitHub actions deprecation warnings
fc19589568 is described below

commit fc195895680424225129b1f1c579aeb2ea61895e
Author: James Netherton <[email protected]>
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 bcb541d73f..d2e469b178 100644
--- a/.github/workflows/camel-master-cron.yaml
+++ b/.github/workflows/camel-master-cron.yaml
@@ -89,7 +89,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 183c7d9f5a..1ee27619ec 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")
 }

Reply via email to