From 66900e19acbed470671d84dbb49ccb96c3a4262b Mon Sep 17 00:00:00 2001 From: Anthony Martin Date: Fri, 17 Sep 2021 17:39:13 +0000 Subject: [PATCH] Use $GITHUB_WORKSPACE env var --- .github/workflows/generate-types.yml | 4 ++-- .gitignore | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate-types.yml b/.github/workflows/generate-types.yml index d7cdf2ca45..b9a9c977e1 100644 --- a/.github/workflows/generate-types.yml +++ b/.github/workflows/generate-types.yml @@ -35,9 +35,9 @@ jobs: run: | if [ -z "${{ github.event.inputs.single_path }}" ] then - npm run generate-all -- '{"localPath": "../../workflow-temp/azure-rest-api-specs"}' + npm run generate-all -- '{"localPath": "$GITHUB_WORKSPACE/workflow-temp/azure-rest-api-specs"}' else - npm run generate-single -- '${{ github.event.inputs.single_path }}/resource-manager' '../../workflow-temp/azure-rest-api-specs' + npm run generate-single -- '${{ github.event.inputs.single_path }}/resource-manager' '$GITHUB_WORKSPACE/workflow-temp/azure-rest-api-specs' fi working-directory: generator diff --git a/.gitignore b/.gitignore index ebf1431329..b196780448 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,7 @@ schemas/code-model-v1 Debug Release obj -bin \ No newline at end of file +bin + +# Temporary directory for GitHub workflows to use +/workflow-temp \ No newline at end of file