Skip to content

Commit

Permalink
refactor: debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
FllipEis authored Oct 14, 2024
1 parent a34745c commit e98491d
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/bundle-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,31 @@ jobs:
- name: Generate release name and tag
id: release_info
run: |
echo "Starting release name and tag generation..."
YEAR=$(date +%Y)
echo "Current year: $YEAR"
WEEK=$(date +%V)
DAY_OF_WEEK=$(date +%u)
DAILY_COUNT=$(git rev-list --count --since="midnight" HEAD)
RELEASE_IN_WEEK=$((($DAY_OF_WEEK - 1) * 100 + $DAILY_COUNT))
echo "Current week number: $WEEK"
RELEASE_IN_WEEK=$(git rev-list --count --since="last week" HEAD)
echo "Commits since last week: $RELEASE_IN_WEEK"
RELEASE_NAME="${YEAR}.${WEEK}.${RELEASE_IN_WEEK}"
echo "Generated RELEASE_NAME: $RELEASE_NAME"
TAG_NAME="v${RELEASE_NAME}"
echo "Generated TAG_NAME: $TAG_NAME"
echo "RELEASE_NAME=${RELEASE_NAME}" >> $GITHUB_OUTPUT
echo "TAG_NAME=v${RELEASE_NAME}" >> $GITHUB_OUTPUT
echo "TAG_NAME=${TAG_NAME}" >> $GITHUB_OUTPUT
echo "Release information set:"
echo " RELEASE_NAME: $RELEASE_NAME"
echo " TAG_NAME: $TAG_NAME"
echo "Release name and tag generation completed."
- name: Create Release
id: create_release
Expand Down

0 comments on commit e98491d

Please sign in to comment.