Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,18 @@ prepare-release: gen/openapi
@echo "$$(shasum -a 256 $(SKILL_EMBEDDED) | cut -d' ' -f1) v$(VERSION)" >> $(SKILL_HASHES)
@echo "Appended sha256 for $(SKILL_EMBEDDED) to $(SKILL_HASHES)"
@npx -q changie@$(CHANGIE_VERSION) batch $(VERSION)
@npx -q changie@$(CHANGIE_VERSION) merge

.PHONY: cleanup-release
cleanup-release:
@if [ -z "$(DEV_VERSION)" ]; then echo "DEV_VERSION is not set"; exit 1; fi
@if ! $$(git tag -l v$$(cat version/VERSION) >/dev/null 2>&1); then echo "Lastest version $$(cat version/VERSION) has not been released"; exit 1; fi
@if ! git rev-parse --verify --quiet refs/tags/v$$(cat $(VERSION_FILE)) >/dev/null 2>&1; then echo "Latest version $$(cat $(VERSION_FILE)) has not been released"; exit 1; fi

@echo $(DEV_VERSION) > $(VERSION_FILE)
@echo "## Unreleased" > $(CHANGELOG_FILE)
@echo "" >> $(CHANGELOG_FILE)
@echo "This file will be populated by automation before release. See this [CHANGELOG.md](https://github.com/hashicorp/tfctl-cli/blob/v$(VERSION)/CHANGELOG.md) for information about the latest release." >> $(CHANGELOG_FILE)
@echo "This file will be populated by automation before release. See this [CHANGELOG.md](https://github.com/hashicorp/tfctl-cli/blob/v$$(cat $(VERSION_FILE))/CHANGELOG.md) for information about the latest release." >> $(CHANGELOG_FILE)
@echo "Release cleanup finished, version is now $(DEV_VERSION)"
@echo $(DEV_VERSION) > $(VERSION_FILE)

# Install development tools
.PHONY: tools
Expand Down
Loading