diff --git a/.github/workflows/annotate.yml b/.github/workflows/annotate.yml index bc012ea..f392508 100644 --- a/.github/workflows/annotate.yml +++ b/.github/workflows/annotate.yml @@ -4,7 +4,7 @@ on: [ pull_request ] jobs: annotate: - if: github.event.pull_request.head.user == 'kchason' + if: github.event.pull_request.head.user.login == 'kchason' runs-on: ubuntu-latest steps: @@ -16,7 +16,7 @@ jobs: uses: ./ with: case-path: "./tests/data/" - case-version: "case-1.2.0" + case-version: "case-1.3.0" report-in-pr: "true" github-token: ${{ secrets.GITHUB_TOKEN }} repository: ${{ github.repository }} diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 5954e15..f26b9f4 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -36,17 +36,17 @@ jobs: uses: ./ with: case-path: "./tests/data/simple-case.jsonld" - case-version: "case-1.2.0" + case-version: "case-1.3.0" - name: Run Action - Directory Filter uses: ./ with: case-path: "./tests/data/" - case-version: "case-1.2.0" + case-version: "case-1.3.0" extension-filter: "jsonld" - name: Run Action - Directory No Filter uses: ./ with: case-path: "./tests/data/" - case-version: "case-1.2.0" + case-version: "case-1.3.0" diff --git a/Dockerfile b/Dockerfile index 8960ab1..1d0d9b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM python:3.11-slim-bullseye WORKDIR /opt/workspace # Install dependencies -RUN python -m pip install case-utils==0.15.0 PyGithub +RUN python -m pip install case-utils==0.16.0 PyGithub # Delete source files now that package has been installed WORKDIR /opt/workspace @@ -14,7 +14,7 @@ COPY entrypoint.py /opt/workspace/entrypoint.py # Define the base path for the validation path ENV CASE_PATH "/opt/json/" -ENV CASE_VERSION "case-1.2.0" +ENV CASE_VERSION "case-1.3.0" ENV CASE_EXTENSION_FILTER "" ENV CASE_VALIDATE_ABORT "false" diff --git a/README.md b/README.md index 848b85b..eb82fae 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,10 @@ Include the validation action in your GitHub action workflow and specify the fil ```yaml # Run the CASE validation job to confirm the output is valid - name: CASE Export Validation - uses: kchason/case-validation-action@v2.8.0 + uses: kchason/case-validation-action@v2.9.0 with: case-path: ./output/ - case-version: "case-1.2.0" + case-version: "case-1.3.0" extension-filter: "jsonld" report-in-pr: "true" github-token: ${{ secrets.GITHUB_TOKEN }} @@ -51,7 +51,7 @@ modified to fit custom use cases. # To run the latest image and remove the container after execution. docker run --rm \ -e CASE_PATH="/opt/case/" \ - -e CASE_VERSION="case-1.2.0" \ + -e CASE_VERSION="case-1.3.0" \ -e CASE_EXTENSION_FILTER="jsonld" \ -v "/path/to/local:/opt/case" \ kchason/case-validator:latest @@ -70,7 +70,7 @@ at [https://gitlab.com/keith.chason/case-validation-example](https://gitlab.com/ | Action Variable | Environment Variable | Description | Options | Default | |------------------|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|--------------| | case-path | CASE_PATH | The path to the file or directory to be validated. | Any | /opt/json | -| case-version | CASE_VERSION | The version of the ontology against which the graph should be validatated. | "none", "case-0.5.0", "case-0.6.0" , "case-0.7.0", "case-0.7.1", "case-1.0.0", "case-1.1.0", "case-1.2.0" | "case-1.2.0" | +| case-version | CASE_VERSION | The version of the ontology against which the graph should be validatated. | "none", "case-0.5.0", "case-0.6.0" , "case-0.7.0", "case-0.7.1", "case-1.0.0", "case-1.1.0", "case-1.2.0", "case-1.3.0" | "case-1.3.0" | | extension-filter | CASE_EXTENSION_FILTER | The extension of only the files against which the validator should be run. Eg. `"json"`, `"jsonld"`, `"case"`. Defaults to `""` to run against all files defined in `case-path`. | Any | "" | | abort | CASE_VALIDATE_ABORT | Whether to abort the validator on the first failure | "true", "false" | "false" | | report-in-pr | REPORT_IN_PR | Whether or not to report the validation results in the pull request. Only reports if the action is triggered by a pull request. | "true", "false" | "false" | diff --git a/action.yml b/action.yml index 1ace129..6f460f8 100644 --- a/action.yml +++ b/action.yml @@ -10,9 +10,9 @@ inputs: required: false default: '/opt/json/' case-version: - description: 'The version of the ontology against which the graph should be validated. Options: "none", "case-0.5.0", "case-0.6.0", "case-0.7.0", "case-0.7.1", "case-1.0.0", "case-1.1.0", "case-1.2.0"' + description: 'The version of the ontology against which the graph should be validated. Options: "none", "case-0.5.0", "case-0.6.0", "case-0.7.0", "case-0.7.1", "case-1.0.0", "case-1.1.0", "case-1.2.0", "case-1.3.0"' required: false - default: 'case-1.2.0' + default: 'case-1.3.0' extension-filter: description: 'The extension of only the files against which the validator should be run. Eg. "json", "jsonld", "case". Defaults to "" to run against all files defined in `case-path`.' required: false @@ -39,7 +39,7 @@ inputs: default: '' runs: using: 'docker' - image: 'docker://kchason/case-validator:1.4.0' + image: 'docker://kchason/case-validator:1.5.0' env: CASE_PATH: ${{ inputs.case-path }} CASE_VERSION: ${{ inputs.case-version }}