aboutsummaryrefslogtreecommitdiffstats
path: root/devscripts/update-version.py
diff options
context:
space:
mode:
authorLesmiscore <nao20010128@gmail.com>2022-10-21 22:26:00 +0900
committerGitHub <noreply@github.com>2022-10-21 18:56:00 +0530
commit7d61d2306e36d31ad992df4e332be4ff8c708ef8 (patch)
tree50efa5b95e160c57de15545698ca5e418aee4185 /devscripts/update-version.py
parent385adffcf52cda84195adee0e5216072204a764d (diff)
downloadhypervideo-pre-7d61d2306e36d31ad992df4e332be4ff8c708ef8.tar.lz
hypervideo-pre-7d61d2306e36d31ad992df4e332be4ff8c708ef8.tar.xz
hypervideo-pre-7d61d2306e36d31ad992df4e332be4ff8c708ef8.zip
[build] Replace `set-output` with `GITHUB_OUTPUT` (#5315)
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ Authored by: Lesmiscore
Diffstat (limited to 'devscripts/update-version.py')
-rw-r--r--devscripts/update-version.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/devscripts/update-version.py b/devscripts/update-version.py
index caebf4241..9cf8b42e6 100644
--- a/devscripts/update-version.py
+++ b/devscripts/update-version.py
@@ -50,5 +50,7 @@ UPDATE_HINT = None
'''
write_file('yt_dlp/version.py', VERSION_FILE)
-print(f'::set-output name=ytdlp_version::{VERSION}')
+github_output = os.getenv('GITHUB_OUTPUT')
+if github_output:
+ write_file(github_output, f'ytdlp_version={VERSION}\n', 'a')
print(f'\nVersion = {VERSION}, Git HEAD = {GIT_HEAD}')