Skip to content

Commit 66900e1

Browse files
Use $GITHUB_WORKSPACE env var
1 parent 58c6810 commit 66900e1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/generate-types.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
run: |
3636
if [ -z "${{ github.event.inputs.single_path }}" ]
3737
then
38-
npm run generate-all -- '{"localPath": "../../workflow-temp/azure-rest-api-specs"}'
38+
npm run generate-all -- '{"localPath": "$GITHUB_WORKSPACE/workflow-temp/azure-rest-api-specs"}'
3939
else
40-
npm run generate-single -- '${{ github.event.inputs.single_path }}/resource-manager' '../../workflow-temp/azure-rest-api-specs'
40+
npm run generate-single -- '${{ github.event.inputs.single_path }}/resource-manager' '$GITHUB_WORKSPACE/workflow-temp/azure-rest-api-specs'
4141
fi
4242
working-directory: generator
4343

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ schemas/code-model-v1
88
Debug
99
Release
1010
obj
11-
bin
11+
bin
12+
13+
# Temporary directory for GitHub workflows to use
14+
/workflow-temp

0 commit comments

Comments
 (0)