]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

CI Test: Deprecating 'set-output' command (#3757)
authorrdrll <13176405+rdrll@users.noreply.github.com>
Fri, 30 Jun 2023 14:07:42 +0000 (07:07 -0700)
committerGitHub <noreply@github.com>
Fri, 30 Jun 2023 14:07:42 +0000 (07:07 -0700)
CHANGES.md
scripts/diff_shades_gha_helper.py

index ba7947a3c7d539e8c83b5f183fd1702aaee3ae62..d7928a30c5ccc19968635d4128c30b32395160ba 100644 (file)
@@ -70,6 +70,8 @@
 <!-- For example, Docker, GitHub Actions, pre-commit, editors -->
 
 - Update GitHub Action to display black output in the job summary (#3688)
 <!-- For example, Docker, GitHub Actions, pre-commit, editors -->
 
 - Update GitHub Action to display black output in the job summary (#3688)
+- Deprecated `set-output` command in CI test to keep up to date with GitHub's
+  deprecation announcement (#3757)
 
 ### Documentation
 
 
 ### Documentation
 
index b5fea5a817d176306b3c755cac2dd247e17f56b4..994fbe0504509917113af7ef6e2bb1c651c36fa7 100644 (file)
@@ -52,7 +52,13 @@ def set_output(name: str, value: str) -> None:
         print(f"[INFO]: setting '{name}' to '{value}'")
     else:
         print(f"[INFO]: setting '{name}' to [{len(value)} chars]")
         print(f"[INFO]: setting '{name}' to '{value}'")
     else:
         print(f"[INFO]: setting '{name}' to [{len(value)} chars]")
-    print(f"::set-output name={name}::{value}")
+
+    # Originally the `set-output` workflow command was used here, now replaced
+    # by setting variables through the `GITHUB_OUTPUT` environment variable
+    # to stay up to date with GitHub's update.
+    if "GITHUB_OUTPUT" in os.environ:
+        with open(os.environ["GITHUB_OUTPUT"], "a") as f:
+            print(f"{name}={value}", file=f)
 
 
 def http_get(url: str, *, is_json: bool = True, **kwargs: Any) -> Any:
 
 
 def http_get(url: str, *, is_json: bool = True, **kwargs: Any) -> Any: