зеркало из https://github.com/nextcloud/cookbook.git
Add missing files and fixed minor bugs from last action runs
Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
Родитель
316f27448c
Коммит
b0ab5fd9c8
|
@ -82,4 +82,4 @@ git remote add tokenized "https://nextcloud-cookbook-bot:$BOT_TOKEN@github.com/n
|
|||
git -c "http.https://github.com/.extraheader=" push tokenized $stable_branch $master_branch
|
||||
git push origin "v$version"
|
||||
|
||||
echo "::set-output name=version::$version"
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
import os
|
||||
|
||||
class CILogger:
|
||||
def __init__(self, isCi):
|
||||
self.ci = isCi
|
||||
|
@ -62,7 +64,12 @@ class CILogger:
|
|||
|
||||
def printSetOutput(self, name, value):
|
||||
if self.ci:
|
||||
print('::set-output name={name}::{value}'.format(name=name, value=value))
|
||||
if 'GITHUB_OUTPUT' in os.environ:
|
||||
with open(os.environ['GITHUB_OUTPUT'], 'a') as fp:
|
||||
fp.write(f"{name}={value}")
|
||||
else:
|
||||
print('Error: GITHUB_OUTPUT not found in environment. Falling back to old syntax.')
|
||||
print('::set-output name={name}::{value}'.format(name=name, value=value))
|
||||
else:
|
||||
print('[O:{name}] {value}'.format(name=name, value=value))
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"name": "nextcloud/cookbook-phpunit",
|
||||
"type": "library",
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9"
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче