File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -52,20 +52,21 @@ jobs:
52
52
id : datetime
53
53
run : echo "::set-output name=current_datetime::$(date +'%d/%m/%Y %H:%M')"
54
54
55
- # New step to get previous tag and commits
55
+ # Step to get previous tag and commits
56
56
- name : Get commits since last release
57
57
id : get_commits
58
+ shell : powershell
58
59
run : |
59
60
# Get the most recent tag (assuming releases are tagged)
60
- PREV_TAG=$( git describe --tags --abbrev=0)
61
- echo "Previous tag: $PREV_TAG "
61
+ $prevTag = git describe --tags --abbrev=0
62
+ Write-Host "Previous tag: $prevTag "
62
63
63
64
# List commits since last tag
64
- COMMITS=$( git log $PREV_TAG ..HEAD --pretty=format:"* %s")
65
- echo "Commits since last release: $COMMITS "
65
+ $commits = git log $prevTag ..HEAD --pretty=format:"* %s"
66
+ Write-Host "Commits since last release: $commits "
66
67
67
- # Save commits to output for use in the release body
68
- echo "::set-output name= commits::${COMMITS}"
68
+ # Save commits to an environment file to use later
69
+ echo "commits=$commits" >> $env:GITHUB_ENV
69
70
70
71
- name : Create Release
71
72
id : create_release
79
80
Automated Release by GitHub Action CI
80
81
81
82
### Commits in this release:
82
- ${{ steps.get_commits.outputs .commits }}
83
+ ${{ env .commits }}
83
84
draft : false
84
85
prerelease : false
85
86
You can’t perform that action at this time.
0 commit comments