diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ee4f281e..3684ab60 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -148,10 +148,8 @@ jobs: run: sudo apt-get install -y jq - name: Generate Release Notes - env: - ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} run: | - make generate-notes VERSION_OLD=${{ needs.update_version.outputs.previous_version }} VERSION_NEW=${{ github.ref_name }} > release_notes.md + make generate-notes VERSION_OLD=${{ needs.update_version.outputs.previous_version }} VERSION_NEW=${{ github.ref_name }} ANTHROPIC_API_KEY=${{ secrets.ANTHROPIC_API_KEY }} > release_notes.md - name: Update Release Notes uses: softprops/action-gh-release@v2 diff --git a/Makefile b/Makefile index 1c626630..5bd8c8a4 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ HTTPS_PROXY = http://172.17.0.1:1081 # Variables to hold version tags and contributor names VERSION_OLD ?= VERSION_NEW ?= -CONTRIBUTORS ?= +CONTRIBUTORS ?= $(shell git log --pretty=format:'%an' $(VERSION_OLD)..$(VERSION_NEW) | sort | uniq) # Claude API settings CLAUDE_MODEL ?= claude-3-5-sonnet-20241022 @@ -103,9 +103,6 @@ ifndef VERSION_NEW @echo "Error: VERSION_NEW is not set" @exit 1 endif -ifndef CONTRIBUTORS - @echo "Warning: CONTRIBUTORS not set. Continuing without contributors." -endif ifndef ANTHROPIC_API_KEY @echo "Error: ANTHROPIC_API_KEY is not set" @exit 1