You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2022/10/14 08:22:54 UTC

[pulsar-test-infra] branch master updated: [fix][ci] Remove deprecated usage of ::set-output (#78)

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

lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-test-infra.git


The following commit(s) were added to refs/heads/master by this push:
     new 3e87f54  [fix][ci] Remove deprecated usage of ::set-output (#78)
3e87f54 is described below

commit 3e87f548b3a85697243c7f95dd0d63043e89417a
Author: Nicolò Boschi <bo...@gmail.com>
AuthorDate: Fri Oct 14 10:22:48 2022 +0200

    [fix][ci] Remove deprecated usage of ::set-output (#78)
---
 diff-only/entrypoint.sh | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/diff-only/entrypoint.sh b/diff-only/entrypoint.sh
index e3b94e3..3cc57fe 100755
--- a/diff-only/entrypoint.sh
+++ b/diff-only/entrypoint.sh
@@ -34,16 +34,17 @@ if [[ $COMMITS -gt 0 ]]; then
 
         if [[ ${found_changed_dir_not_in_target_dirs} == "yes" ]]; then
             echo "Changes ${CHANGED_DIRS} not only in $*, setting 'changed_only' to 'no'"
-            echo ::set-output name=changed_only::no
+            echo "changed_only=no" >> $GITHUB_OUTPUT
         else
             echo "Changes ${CHANGED_DIRS} only in $*, setting 'changed_only' to 'yes'"
-            echo ::set-output name=changed_only::yes
+            echo "changed_only=yes" >> $GITHUB_OUTPUT
         fi
     else
         echo "Cannot find first commit. Setting 'changed_only' to 'no'."
-        echo ::set-output name=changed_only::no
+        echo "changed_only=no" >> $GITHUB_OUTPUT
     fi
 else
     echo "Cannot find number of commits in pull_request. Setting 'changed_only' to 'no'."
-    echo ::set-output name=changed_only::no
+    echo "changed_only=no" >> $GITHUB_OUTPUT
+
 fi
\ No newline at end of file