diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 694012856d42..d599a8116fdf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,11 +15,13 @@ jobs: count: ${{ steps.env_vars.outputs.count }} tag_name: ${{ steps.env_vars.outputs.tag_name }} release_name: ${{ steps.env_vars.outputs.release_name }} + yesterday_tag_name: ${{ steps.env_vars.outputs.yesterday_tag_name }} steps: - uses: actions/checkout@v4 - id: env_vars run: | TAG_NAME=$(date -u --iso-8601 --date='1 day ago') + YESTERDAY_TAG_NAME=$(date -u --iso-8601 --date='2 day ago') COMMITS=$(git log --oneline --since="$TAG_NAME" | wc -l) RELEASE_NAME="Experimental $TAG_NAME" @@ -27,6 +29,7 @@ jobs: echo "count=$COMMITS" >> "$GITHUB_OUTPUT" echo "tag_name=$TAG_NAME" >> "$GITHUB_OUTPUT" + echo "yesterday_tag_name=$YESTERDAY_TAG_NAME" >> "$GITHUB_OUTPUT" echo "release_name=$RELEASE_NAME" >> "$GITHUB_OUTPUT" release: @@ -68,6 +71,8 @@ jobs: uses: mikepenz/release-changelog-builder-action@v4.2.0 with: configuration: "changelog.json" + fromTag: ${{ needs.metadata.outputs.yesterday_tag_name }} + toTag: ${{ needs.metadata.outputs.tag_name }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}