Skip to content

Commit

Permalink
ADD: metacheck GHA (and cleanup so it passes)
Browse files Browse the repository at this point in the history
  • Loading branch information
fileformat committed Mar 9, 2024
1 parent bc6853a commit 3be1f42
Show file tree
Hide file tree
Showing 61 changed files with 144 additions and 77 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/metacheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: metacheck

on:
pull_request:
paths:
- www/logos/*/index.md
push:
paths:
- www/logos/*/index.md
workflow_dispatch:

jobs:
metacheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: false

- name: Install Golang dependencies
run: go install github.com/FileFormatInfo/fflint/cmd/fflint@latest

- name: Check metadata
run: bin/chkmeta.sh

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
[![imagecheck](https://github.com/VectorLogoZone/vectorlogozone/actions/workflows/imagecheck.yaml/badge.svg)](https://github.com/VectorLogoZone/vectorlogozone/actions/workflows/imagecheck.yaml)
[![icondimensions](https://github.com/VectorLogoZone/vectorlogozone/actions/workflows/icondimensions.yaml/badge.svg)](https://github.com/VectorLogoZone/vectorlogozone/actions/workflows/icondimensions.yaml)
[![ar21dimensions](https://github.com/VectorLogoZone/vectorlogozone/actions/workflows/ar21dimensions.yaml/badge.svg)](https://github.com/VectorLogoZone/vectorlogozone/actions/workflows/ar21dimensions.yaml)
[![metadata](https://github.com/VectorLogoZone/vectorlogozone/actions/workflows/metadata.yaml/badge.svg)](https://github.com/VectorLogoZone/vectorlogozone/actions/workflows/metadata.yaml)
[![CodeQL](https://github.com/VectorLogoZone/vectorlogozone/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/VectorLogoZone/vectorlogozone/actions/workflows/github-code-scanning/codeql)


Expand Down
36 changes: 36 additions & 0 deletions bin/chkmeta.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env bash
#
# lint the metadata in index.md files
#

set -o errexit
set -o pipefail
set -o nounset

if [ ! command -v fflint &> /dev/null ]; then
echo "ERROR: fflint is not installed"
echo "try:"
echo " go install github.com/FileFormatInfo/fflint/cmd/fflint@latest"
exit 1
fi

SCRIPT_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
REPO_HOME="$(basename $SCRIPT_HOME)"
DEFAULT_LOGODIR="$(realpath $SCRIPT_HOME/../www/logos)"

LOGODIR="${1:-${DEFAULT_LOGODIR}}"
if [ ! -d "${LOGODIR}" ]; then
echo "ERROR: logo directory not found: ${LOGODIR}"
exit 1
fi

echo "INFO: starting at $(date -u +%Y-%m-%dT%H:%M:%SZ)"

fflint frontmatter \
--strict=true \
--required=title,website,logohandle,sort \
--optional=blog,colors,discord,dribbble,facebook,flickr,font,googleplus,git,github,gitlab,gitter,guide,images,instagram,keywords,linkedin,noindex,other,pinterest,reddit,redirect_from,slack,slideshare,snapchat,soundcloud,stackexchange,stackoverflow,tags,tiktok,tumblr,twitter,wikipedia,vimeo,vine,weibo,xing,youtube \
--sorted=true \
"${LOGODIR}/*/index.md"

echo "INFO: complete at $(date -u +%Y-%m-%dT%H:%M:%SZ)"
File renamed without changes.
2 changes: 1 addition & 1 deletion www/logos/abetterinternet/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
keywords: ["Internet Security Research Group"]
keywords: [ "Internet Security Research Group" ]
logohandle: abetterinternet
sort: isrg
title: ISRG
Expand Down
4 changes: 2 additions & 2 deletions www/logos/abim/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
blog: 'https://blog.abim.org/'
facebook: 'https://facebook.com/abim.certification'
logohandle: abim
facebook: [ 'https://facebook.com/abim.certification' ]
keywords: "American Board of Internal Medicine"
logohandle: abim
sort: abim
title: ABIM
twitter: abimcert
Expand Down
2 changes: 1 addition & 1 deletion www/logos/accesstomemory/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
github: artefactual/atom
keywords: "Access to Memory"
keywords: [ "Access to Memory" ]
logohandle: accesstomemory
sort: accesstomemory
title: AtoM
Expand Down
2 changes: 1 addition & 1 deletion www/logos/adobe_acrobat/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ images:
- adobe_acrobat-icon.svg
- adobe_acrobat-tile.svg
- adobe_acrobat-ar21.svg
keywords: pdf
keywords: [ pdf ]
logohandle: adobe_acrobat
sort: acrobat
tags:
Expand Down
2 changes: 1 addition & 1 deletion www/logos/ampp/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
facebook: 'https://facebook.com/AMPPorg'
instagram: 'https://instagram.com/ampporg'
keywords: "Association for Materials Protection and Performance"
keywords: [ "Association for Materials Protection and Performance" ]
linkedin: 'https://linkedin.com/company/ampporg'
logohandle: ampp
sort: ampp
Expand Down
2 changes: 1 addition & 1 deletion www/logos/apache_maven/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
guide: 'https://github.com/apache/maven-site/tree/master/content/resources/images'
logohandle: apache_maven
images:
- apache_maven-ar21.svg
- apache_maven-icon.svg
logohandle: apache_maven
sort: maven
title: Maven
twitter: ASFMavenProject
Expand Down
2 changes: 1 addition & 1 deletion www/logos/asvaro/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
facebook: 'https://facebook.com/Association-of-Silicon-Valley-Amateur-Radio-Organizations-2346550458903691'
keywords: "Association of Silicon Valley Amateur Radio Organizations"
keywords: [ "Association of Silicon Valley Amateur Radio Organizations" ]
logohandle: asvaro
sort: asvaro
title: ASVARO
Expand Down
2 changes: 1 addition & 1 deletion www/logos/circllu/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
github: CIRCL
keywords: Computer Incident Response Center Luxembourg
keywords: [ "Computer Incident Response Center Luxembourg" ]
logohandle: circllu
sort: circl
title: CIRCL
Expand Down
2 changes: 1 addition & 1 deletion www/logos/cnabio/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
github: cnabio/cnab-spec
keywords: Cloud Native Application Bundles
keywords: [ "Cloud Native Application Bundles" ]
logohandle: cnabio
sort: cnab
title: CNAB
Expand Down
6 changes: 3 additions & 3 deletions www/logos/codecovio/index.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
github: codecov
guide: 'https://github.com/codecov/media/tree/master/logos'
images:
- codecovio-icon.svg
- codecovio-ar21.svg
logohandle: codecovio
sort: codecov
title: Codecov
twitter: codecov
website: 'https://codecov.io/'
images:
- codecovio-icon.svg
- codecovio-ar21.svg
---
2 changes: 1 addition & 1 deletion www/logos/coreinfrastructure/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
blog: 'https://coreinfrastructure.org/news/blog'
keywords: cii
keywords: [ "cii" ]
logohandle: coreinfrastructure
sort: coreinfrastructure
title: Core Infrastructure Initiative
Expand Down
6 changes: 3 additions & 3 deletions www/logos/corsair/index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
facebook: 'https://facebook.com/Corsair'
googleplus: 'https://plus.google.com/+corsair/'
images:
- corsair-ar21.svg
- corsair-icon.svg
instagram: 'https://instagram.com/corsair'
logohandle: corsair
sort: corsair
title: CORSAIR
twitter: Corsair
website: 'https://www.corsair.com/us/en/'
youtube: 'https://youtube.com/user/CorsairMemoryInc'
images:
- corsair-ar21.svg
- corsair-icon.svg
---
2 changes: 1 addition & 1 deletion www/logos/cosmicjs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ blog: 'https://cosmicjs.com/blog/how-to-choose-a-modern-cms-future-proof-your-co
colors: [ "#29ABE2", "#F7FBFC", "#11171A" ]
facebook: 'https://facebook.com/cosmicjs'
github: cosmicjs
guidelines: 'https://www.cosmicjs.com/brand'
guide: 'https://www.cosmicjs.com/brand'
instagram: 'https://instagram.com/cosmic_js_'
linkedin: 'https://linkedin.com/company/cosmic-js'
logohandle: cosmicjs
Expand Down
2 changes: 1 addition & 1 deletion www/logos/creativecommons/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ guide: https://creativecommons.org/about/downloads/
images:
- creativecommons-ar21.svg
- creativecommons-icon.svg
keywords: cc
keywords: [ "cc" ]
logohandle: creativecommons
sort: creativecommons
title: Creative Commons
Expand Down
2 changes: 1 addition & 1 deletion www/logos/ctatech/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
facebook: 'https://facebook.com/ConsumerTechnologyAssociation'
instagram: 'https://instagram.com/cta'
keywords: [ "Consumer Technology Association" ]
linkedin: 'https://linkedin.com/company/consumer-technology-association'
logohandle: ctatech
keywords: "Consumer Technology Association"
sort: cta
title: CTA
twitter: CTATech
Expand Down
2 changes: 1 addition & 1 deletion www/logos/datacenterinc/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
keywords: dci
keywords: [ "dci" ]
logohandle: datacenterinc
sort: datacenterinc
title: Data Center Inc.
Expand Down
2 changes: 1 addition & 1 deletion www/logos/dfinsolutions/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
facebook: 'https://facebook.com/DFINSolutions'
keywords: "Donnelley Financial Solutions"
keywords: [ "Donnelley Financial Solutions" ]
linkedin: 'https://linkedin.com/company/dfinsolutions'
logohandle: dfinsolutions
sort: dfin
Expand Down
2 changes: 1 addition & 1 deletion www/logos/diagramsnet/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
github: jgraph
keywords: "draw.io"
keywords: [ "draw.io" ]
logohandle: diagramsnet
sort: diagramsnet
title: Diagrams.net
Expand Down
2 changes: 1 addition & 1 deletion www/logos/digitizationguidelinesgov/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
keywords: [ "Federal Agencies Digital Guidelines Initiative" ]
logohandle: digitizationguidelinesgov
keywords: "Federal Agencies Digital Guidelines Initiative"
sort: fadgi
title: FADGI
website: 'https://www.digitizationguidelines.gov/'
Expand Down
2 changes: 1 addition & 1 deletion www/logos/enterprisedb/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
facebook: 'https://facebook.com/EDBpostgres'
keywords : edb
linkedin: 'https://linkedin.com/company/enterprisedb'
logohandle: enterprisedb
keywords : edb
sort: enterprisedb
title: EnterpriseDB
twitter: EDBPostgres
Expand Down
2 changes: 1 addition & 1 deletion www/logos/europeancardpaymentassociation/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
keywords: "European card payment association"
keywords: [ "European card payment association" ]
logohandle: europeancardpaymentassociation
sort: europeancardpaymentassociation
title: ECPA
Expand Down
6 changes: 3 additions & 3 deletions www/logos/f-droid/index.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
blog: 'https://f-droid.org/en/news/'
guide: 'https://f-droid.org/assets/fdroid-logo.svg'
images:
- f-droid-ar21.svg
- f-droid-icon.svg
logohandle: f-droid
sort: f-droid
title: F-Droid
website: 'https://f-droid.org/'
images:
- f-droid-ar21.svg
- f-droid-icon.svg
---
2 changes: 1 addition & 1 deletion www/logos/fightimpunity/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
facebook: 'https://facebook.com/fightimpunity'
keywords: [ "AIJT" ]
logohandle: fightimpunity
keywords: [ AIJT ]
sort: fightimpunity
title: Fight Impunity
twitter: fightimpunity
Expand Down
2 changes: 1 addition & 1 deletion www/logos/gbif/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
facebook: 'https://facebook.com/gbifnews'
github: gbif
instagram: 'https://instagram.com/gbifs'
keywords: [ "Global Biodiversity Information Facility" ]
linkedin: 'https://linkedin.com/company/gbif'
logohandle: gbif
keywords: "Global Biodiversity Information Facility"
sort: gbif
title: GBIF
twitter: GBIF
Expand Down
2 changes: 1 addition & 1 deletion www/logos/getdbt/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
blog: 'https://blog.getdbt.com/'
github: fishtown-analytics/dbt
keywords: "data build tool"
keywords: [ "data build tool" ]
logohandle: getdbt
sort: dbt
title: dbt
Expand Down
8 changes: 4 additions & 4 deletions www/logos/github_copilot/index.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
images:
- github_copilot-icon.svg
- github_copilot-ar21.svg
- github_copilot-official.svg
logohandle: github_copilot
sort: githubcopilot
title: Github Copilot
website: https://copilot.github.com/
wikipedia: https://en.wikipedia.org/wiki/GitHub_Copilot
images:
- github_copilot-icon.svg
- github_copilot-ar21.svg
- github_copilot-official.svg
---
2 changes: 1 addition & 1 deletion www/logos/github_kubernetes-sig_kind/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
github: kubernetes-sigs/kind
keywords: "Kubernetes IN Docker"
keywords: [ "Kubernetes IN Docker" ]
logohandle: github_kubernetes-sig_kind
sort: kind
title: KIND
Expand Down
2 changes: 1 addition & 1 deletion www/logos/gsdngo/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
keywords: [ "Global Support and Development" ]
logohandle: gsdngo
keywords: "Global Support and Development"
sort: gsd
title: GSD
website: 'https://www.gsd.ngo/'
Expand Down
2 changes: 1 addition & 1 deletion www/logos/identityfoundation/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
blog: 'https://medium.com/decentralized-identity'
github: decentralized-identity
keywords: "Decentralized Identity Foundation"
keywords: [ "Decentralized Identity Foundation" ]
logohandle: identityfoundation
sort: dif
title: DIF
Expand Down
2 changes: 1 addition & 1 deletion www/logos/iers/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
keywords: "International Earth Rotation Service"
keywords: [ "International Earth Rotation Service" ]
logohandle: iers
sort: iers
title: IERS
Expand Down
2 changes: 1 addition & 1 deletion www/logos/industrialareasfoundation/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
facebook: 'https://facebook.com/115917837205232'
keywords: [ "IAF" ]
logohandle: industrialareasfoundation
keywords: "IAF"
sort: industrialareasfoundation
title: Industrial Areas Foundation
twitter: IndAreasFdn
Expand Down
2 changes: 1 addition & 1 deletion www/logos/iso/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
facebook: 'https://facebook.com/isostandards'
instagram: 'https://instagram.com/isostandards'
keywords: "International Organization for Standardization"
keywords: [ "International Organization for Standardization" ]
linkedin: 'https://linkedin.com/company/isostandards'
logohandle: iso
sort: iso
Expand Down
2 changes: 1 addition & 1 deletion www/logos/iugg/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
facebook: 'https://facebook.com/InternationalUnionGeodesyGeophysics'
keywords: "International Union of Geodesy and Geophysics"
keywords: [ "International Union of Geodesy and Geophysics" ]
logohandle: iugg
sort: iugg
title: IUGG
Expand Down
2 changes: 1 addition & 1 deletion www/logos/jsrio/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
keywords: [ "JavaScript Registry" ]
logohandle: jsrio
keywords: "JavaScript Registry"
sort: jsr
title: JSR
website: 'https://jsr.io/'
Expand Down
Loading

0 comments on commit 3be1f42

Please sign in to comment.