Skip to content

Generate codemeta.json #3

Generate codemeta.json

Generate codemeta.json #3

Workflow file for this run

name: codemeta
on:
push:
paths:
- codemeta.json
- .github/workflows/codemeta.yaml
tags:
- 'v*'
pull_request:
paths:
- codemeta.json
- .github/workflows/codemeta.yaml
env:
BUILDDIR: build
CODEMETA_ARTIFACT: codemeta.json
jobs:
generate:
runs-on: ubuntu-latest
container:
image: ghcr.io/fairrootgroup/fairmq-dev/fedora-38:latest
steps:
- uses: actions/checkout@v4
with:
- fetch-depth: 150

Check failure on line 27 in .github/workflows/codemeta.yaml

View workflow run for this annotation

GitHub Actions / codemeta

Invalid workflow file

The workflow is not valid. .github/workflows/codemeta.yaml (Line: 27, Col: 11): A sequence was not expected
- fetch-tags: true
- run: git config --system --add safe.directory ${GITHUB_WORKSPACE}
- name: configure
run: cmake -G Ninja -S . -B ${BUILDDIR}
- name: generate codemeta.json
run: cmake --build ${BUILDDIR} --target codemeta
- run: cat ${BUILDDIR}/${CODEMETA_ARTIFACT}
- uses: actions/upload-artifact@v3
with:
name: ${CODEMETA_ARTIFACT}
path: ${BUILDDIR}/${CODEMETA_ARTIFACT}
validate:
needs: generate
runs-on: ubuntu-latest
container:
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:v1.0
steps:
- uses: actions/download-artifact@v3
with:
name: ${CODEMETA_ARTIFACT}
- name: validate codemeta
run: eossr-metadata-validator ${CODEMETA_ARTIFACT}