Skip to content

Commit

Permalink
Fix nightly-sdk-generation (#1983)
Browse files Browse the repository at this point in the history
* Fix make clean in case 'bin' dir doesn't exist yet #1982

* Cleanup step should remove the whole SDKs

* Fetch git tags for pulumictl #1982

* Fetch git tags via fetch-depth instead #1982
  • Loading branch information
thomas11 committed Sep 21, 2022
1 parent 3adaa76 commit b4f4636
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/nightly-sdk-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
uses: actions/checkout@v2
with:
lfs: true
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v2
with:
Expand All @@ -51,7 +52,7 @@ jobs:
with:
creds: ${{ secrets.AZURE_RBAC_SERVICE_PRINCIPAL }}
- name: Cleanup SDK Folder
run: make clean
run: rm -rf sdk/*
- name: Preparing Git Branch
run: >
git config --local user.email "bot@pulumi.com"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ lint_provider: provider/.mod_download.sentinel provider/cmd/$(PROVIDER)/*.go $(P
cd provider && GOGC=20 golangci-lint run -c ../.golangci.yml

clean:
find bin -maxdepth 1 -type f -delete
if [ -d bin ]; then find bin -maxdepth 1 -type f -delete; fi
rm -rf nuget
find . -maxdepth 2 -name "*.sentinel" -delete
cd provider/cmd/arm2pulumi && rm -f metadata-compact.json schema-full.json
Expand Down

0 comments on commit b4f4636

Please sign in to comment.