Skip to content

toml error

toml error #165

name: validate-and-build
on:
push:
pull_request:
types: [opened, reopened]
jobs:
validate-and-build:

Check failure on line 8 in .github/workflows/validate-and-build.yml

View workflow run for this annotation

GitHub Actions / validate-and-build

Invalid workflow file

The workflow is not valid. .github/workflows/validate-and-build.yml (Line: 8, Col: 3): The workflow must contain at least one job with no dependencies.
#Note that the CircleCI job used a Container. The way to do this with Github Actions
#is to first start up a Virtual Machine, then we can by following:
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idcontainer
runs-on: ubuntu-latest
needs: [validate-tag-if-present]
steps:
- name: Check out the repository code
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9' #Available versions here - https://github.com/actions/python-versions/releases easy to change/make a matrix/use pypy
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Install System Packages
run: |
sudo apt update -qq
sudo apt install jq -qq
- name: Install Python Dependencies and ContentCTL
run: |
pip3 install poetry
git submodule update --init contentctl
cd contentctl
git checkout main
poetry install
- name: content_ctl validate
run: |
cd contentctl
poetry run contentctl -p ../ validate
- name: contentctl generate
run: |
cd contentctl
poetry run contentctl -p ../ build
mkdir ../artifacts
mv ../dist/DA-ESS-ContentUpdate-latest.tar.gz artifacts/
- name: store_artifacts
uses: actions/upload-artifact@v3
with:
name: content-latest
path: |
artifacts/DA-ESS-ContentUpdate-latest.tar.gz