Skip to content

Commit

Permalink
ci: explicitly give fromTag
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 committed Mar 16, 2024
1 parent 17b376a commit c1606cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,21 @@ 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"
echo "commits yesterday ($TAG_NAME): $COMMITS" >> "$GITHUB_STEP_SUMMARY"
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:
Expand Down Expand Up @@ -68,6 +71,8 @@ jobs:
uses: mikepenz/[email protected]
with:
configuration: "changelog.json"
fromTag: ${{ needs.metadata.outputs.yesterday_tag_name }}
toTag: ${{ needs.metadata.outputs.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit c1606cc

Please sign in to comment.