Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nextcloud
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libre.sh
docker
nextcloud
Commits
d6629408
Verified
Commit
d6629408
authored
1 year ago
by
Hugo Renard
Browse files
Options
Downloads
Patches
Plain Diff
ci: improve app script
parent
a9f3cd77
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/nextcloud-apps.py
+4
-2
4 additions, 2 deletions
scripts/nextcloud-apps.py
with
4 additions
and
2 deletions
scripts/nextcloud-apps.py
100644 → 100755
+
4
−
2
View file @
d6629408
#!/usr/bin/python3
import
argparse
,
requests
,
json
,
tarfile
,
os
def
get_manifest
(
path
):
...
...
@@ -15,8 +17,8 @@ def update_nc(manifest, major=""):
response
=
requests
.
get
(
'
https://api.github.com/repos/nextcloud/server/releases
'
)
body
=
response
.
json
()
for
version
in
body
:
if
(
not
version
[
"
draft
"
]
and
not
version
[
"
prerelease
"
]
and
version
[
"
name
"
].
startswith
(
"
v
"
+
major
)):
manifest
[
"
version
"
]
=
version
[
"
name
"
][
1
:]
if
(
not
version
[
"
draft
"
]
and
not
version
[
"
prerelease
"
]
and
version
[
"
tag_
name
"
].
startswith
(
"
v
"
+
major
)):
manifest
[
"
version
"
]
=
version
[
"
tag_
name
"
][
1
:]
break
def
update_apps
(
manifest
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment