[BUG] OpenSearch-Dashboard workflow can only succeed in project repo #641
Labels
bug
Something isn't working
infrastructure
Changes to infrastructure, testing, CI/CD, pipelines, etc.
What is the bug?
When
sql-workbench-test-and-build-workflow.yml
runs, it checks outopensearch-project/opensearch-dashboards
repository.However, it does so into a folder that is specific to this repo.
How can one reproduce the bug?
-> The workflow will fail.
See here for a complete example.
What is the expected behavior?
The workflow passes.
Do you have any additional context?
When GitHub Action runs, it creates a pipeline directory and a workspace directory.
Pipeline directory is
/home/runner/work/$REPO_NAME
and workspace directory is/home/runner/work/$REPO_NAME/$REPO_NAME
.actions/checkout
runs out of the pipeline directory, butaction/setup-node
runs out of the workspace directory.OpenSearch-Dashboards is checked out into
/home/runner/work/$REPO_NAME/sql/OpenSearch-Dashboards
andsetup-node
action attempts to read a file in/home/runner/work/$REPO_NAME/$REPO_NAME/OpenSearch-Dashboards
directory.=> it will only succeed when
$REPO_NAME
issql
.The text was updated successfully, but these errors were encountered: