Skip to content

Commit cf685d1

Browse files
committed
this should just work...
1 parent 6b15cc3 commit cf685d1

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/opencatalogi-publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ jobs:
4646
- run: echo "${{ github.action_path }}" >> $GITHUB_PATH
4747
shell: bash
4848
# Create changes if it is a normal repository
49-
- name: Craate or update the publiccode file
49+
- name: Create or update the publiccode file
5050
if: (!contains(github.repository, '.github'))
5151
run: python update_publiccode.py
5252
shell: bash
5353
# Create changes if it is an organisation repository
54-
- name: Craate or update the publicorganisation file
54+
- name: Create or update the publicorganisation file
5555
if: (contains(github.repository, '.github'))
5656
run: python update_publicorganisation.py
5757
shell: bash

update_publiccode.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,28 @@
5151
if 'description' not in data:
5252
data['description'] = {"en":[]}
5353
if 'en' not in data['description']:
54-
data['description']['en'] = []
55-
if 'nl' not in data['description']:
56-
data['description']['nl'] = []
57-
if 'shortDescription' not in data['description']['en']:
54+
data['description']['en'] = {}
55+
if 'nl' not in data['description']: #this is just to point out that an NL version is wanted
56+
data['description']['nl'] = {}
57+
if 'localisedName' not in data['description']['en']:
5858
data['description']['en']['localisedName'] = ""
59+
if 'genericName' not in data['description']['en']:
5960
data['description']['en']['genericName'] = ""
61+
if 'shortDescription' not in data['description']['en']:
6062
data['description']['en']['shortDescription'] = ""
63+
if 'longDescription' not in data['description']['en']:
6164
data['description']['en']['longDescription'] =""
65+
if 'documentation' not in data['description']['en']:
6266
data['description']['en']['documentation'] = ""
67+
if 'apiDocumentation' not in data['description']['en']:
6368
data['description']['en']['apiDocumentation'] = ""
69+
if 'features' not in data['description']['en']:
6470
data['description']['en']['features'] = []
71+
if 'screenshots' not in data['description']['en']:
6572
data['description']['en']['screenshots'] = []
73+
if 'videos' not in data['description']['en']:
6674
data['description']['en']['videos'] = []
75+
if 'awards' not in data['description']['en']:
6776
data['description']['en']['awards'] = []
6877

6978
# Legal

0 commit comments

Comments
 (0)