Skip to content

Commit

Permalink
Use $GITHUB_WORKSPACE env var
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-c-martin committed Sep 17, 2021
1 parent 58c6810 commit 66900e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generate-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ schemas/code-model-v1
Debug
Release
obj
bin
bin

# Temporary directory for GitHub workflows to use
/workflow-temp

0 comments on commit 66900e1

Please sign in to comment.