Skip to content

Commit

Permalink
10.11
Browse files Browse the repository at this point in the history
  • Loading branch information
ltxhhz committed Oct 11, 2024
1 parent 0eba7ee commit 2ee237f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test

on:
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-tags: true

- name: Get previous tag
id: get_previous_tag
run: |
echo "PREV_TSG=$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))">>$GITHUB_ENV
echo "CURR_TAG=$(git describe --abbrev=0 --tags)">>$GITHUB_ENV
- name: Generate changelog
id: generate_changelog
run: |
echo "Previous tag: $PREV_TAG"
echo "Last tag: $LAST_TAG"
FULL_CHANGELOG="**Full Changelog**: ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/compare/$PREV_TAG...$CURR_TAG"
COMMITS=$(git log $PREV_TAG..HEAD --pretty=format:"%h %s (%an, %ar)")
echo -e "changelog=$COMMITS\n$FULL_CHANGELOG" >> $GITHUB_ENV
- run: echo $changelog

0 comments on commit 2ee237f

Please sign in to comment.