Repository: kubernetes-sigs/kubebuilder (language: go)

Issue:
:seedling: Replace deprecated `set-output` command with environment file
**Describe the issue**
In workflow, `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information, see: [https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/)


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/apidiff.yml b/.github/workflows/apidiff.yml
index ae83a9a1446..7a68d91e7e0 100644
--- a/.github/workflows/apidiff.yml
+++ b/.github/workflows/apidiff.yml
@@ -21,7 +21,7 @@ jobs:
         run: |
           REF="HEAD^"
           [[ -z "${{ github.base_ref }}" ]] || REF=$(git show-ref ${{ github.base_ref }} | head -1 | cut -d' ' -f2)
-          echo "::set-output name=skip::$(test/check-docs-only.sh $REF)"
+          echo "skip=$(test/check-docs-only.sh $REF)" >> $GITHUB_OUTPUT
 
   go-apidiff:
     name: Verify API differences
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 10b00f3ee22..976df9937ca 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -21,7 +21,7 @@ jobs:
         run: |
           REF="HEAD^"
           [[ -z "${{ github.base_ref }}" ]] || REF=$(git show-ref ${{ github.base_ref }} | head -1 | cut -d' ' -f2)
-          echo "::set-output name=skip::$(test/check-docs-only.sh $REF)"
+          echo "skip=$(test/check-docs-only.sh $REF)" >> $GITHUB_OUTPUT
 
   lint:
     name: golangci-lint
@@ -56,4 +56,4 @@ jobs:
     steps:
       - uses: actions/checkout@v3
       - name: Run yamllint make target
-        run: make yamllint
\ No newline at end of file
+        run: make yamllint


Test patch:
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index d1f4edc3917..f2d079a2cc5 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -21,7 +21,7 @@ jobs:
         run: |
           REF="HEAD^"
           [[ -z "${{ github.base_ref }}" ]] || REF=$(git show-ref ${{ github.base_ref }} | head -1 | cut -d' ' -f2)
-          echo "::set-output name=skip::$(test/check-docs-only.sh $REF)"
+          echo "skip=$(test/check-docs-only.sh $REF)" >> $GITHUB_OUTPUT
 
   test:
     name: ${{ matrix.os }}