[workflow] Link Rebase-on-upstream to Build

* make Build callable but not scheduled

* make Build receive commit SHA from caller

* make Rebase pass commit SHA to Build

* Don't set GH output from update-version.py

* No rebase is still success

* Allow scheduled Rebase to invoke Build
This commit is contained in:
dirkf
2023-07-14 03:44:45 +01:00
parent ebb61a70bd
commit 9235c3f7e8
3 changed files with 61 additions and 26 deletions

View File

@@ -22,6 +22,7 @@ if not rev:
VERSION = '.'.join((ver, rev)) if rev else ver
VERSION_FILE = '''# Autogenerated by devscripts/update-version.py
from __future__ import unicode_literals
__version__ = {!r}
'''.format(VERSION)
@@ -29,5 +30,4 @@ __version__ = {!r}
with open('youtube_dl/version.py', 'wt') as f:
f.write(VERSION_FILE)
print('::set-output name=ytdl_version::' + VERSION)
print('\nVersion = %s' % VERSION)
print(VERSION)