From 09e179611232291cc59e7ed8d098daf972279deb Mon Sep 17 00:00:00 2001 From: Alex Axthelm Date: Wed, 21 Aug 2024 10:20:44 +0200 Subject: [PATCH] Don't overrwrite R action --- .github/workflows/R.yml | 13 +++++-------- .github/workflows/json-schema.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/json-schema.yml diff --git a/.github/workflows/R.yml b/.github/workflows/R.yml index c59a717..f146536 100644 --- a/.github/workflows/R.yml +++ b/.github/workflows/R.yml @@ -14,13 +14,10 @@ on: - cron: '0 0 * * 1,2,3,4,5' workflow_dispatch: -name: Check JSON Schema +name: R jobs: - json-schema: - name: JSON Schema Check - uses: RMI-PACTA/actions/actions/json-schema/render-docs/action.yml@json-schema - with: - input-files: 'inst/extdata/schema' - outputs: 'inst/extdata/schema' - output-format: html + R-package: + name: R Package Checks + uses: RMI-PACTA/actions/.github/workflows/R.yml@main + secrets: inherit diff --git a/.github/workflows/json-schema.yml b/.github/workflows/json-schema.yml new file mode 100644 index 0000000..c59a717 --- /dev/null +++ b/.github/workflows/json-schema.yml @@ -0,0 +1,26 @@ +--- +# This example file will enable R language checks on push or PR to the main +# branch. +# It will also run the checks every weeknight at midnight UTC +# +# Note the @main in `uses:` on the last line. This will call the latest version +# of the workflow from the `main` brnach in the RMI-PACTA/actions repo. You can +# also specify a tag from that repo, or a commit SHA to pin action versions. +on: + pull_request: + push: + branches: [main] + schedule: + - cron: '0 0 * * 1,2,3,4,5' + workflow_dispatch: + +name: Check JSON Schema + +jobs: + json-schema: + name: JSON Schema Check + uses: RMI-PACTA/actions/actions/json-schema/render-docs/action.yml@json-schema + with: + input-files: 'inst/extdata/schema' + outputs: 'inst/extdata/schema' + output-format: html