From 9efe593fd5ef5737828fe7835551c9a16944af2f Mon Sep 17 00:00:00 2001 From: Martijn Gastkemper Date: Wed, 26 Feb 2025 15:04:18 +0100 Subject: [PATCH] Clean up config file - Update doc blocks - Remove unused config variable --- README.md | 1 + config/publish.php | 22 ++-------------------- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index ce01b6e..560f7e7 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ NOVA_PUBLISH_PRIVATE_KEY="your GitHub App private key" NOVA_PUBLISH_APPLICATION_ID="your GitHub App ID" NOVA_PUBLISH_OWNER="your GitHub owner" NOVA_PUBLISH_REPOSITORY="your GitHub repository" +NOVA_PUBLISH_WORKFLOW="workflow-file.yml" ``` ## i18n diff --git a/config/publish.php b/config/publish.php index 51cdb58..25da130 100644 --- a/config/publish.php +++ b/config/publish.php @@ -26,32 +26,14 @@ /* |-------------------------------------------------------------------------- - | GitHub workflow path + | GitHub workflow |-------------------------------------------------------------------------- | - | The endpoint of the workflow used by the GitHub API calls. For example: - | https://api.github.com/repos/vendor/project/actions/workflows/some-workflow.yml - | - | Replace "vendor", "project" and "some-workflow": - | https://api.github.com/repos/grrr-amsterdam/nova-publish/actions/workflows/my-workflow_dispatch-workflow.yml + | The name of the workflow file. For example: some-workflow.yml | */ "workflow" => env("NOVA_PUBLISH_WORKFLOW"), - /* - |-------------------------------------------------------------------------- - | Workflow inputs - |-------------------------------------------------------------------------- - | - | Inputs for the workflow. The inputs must be defined in the workflow file: - | https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onworkflow_dispatchinputs - | - | An example: - | ['environment' => env('APP_ENV')] - | - */ - "workflow_inputs" => [], - /* |-------------------------------------------------------------------------- | Git ref to publish