File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 20
20
run : echo "TAGNAME=$(git describe --abbrev=0)" >> $GITHUB_OUTPUT
21
21
- name : Get previous tag name
22
22
id : previous_tag
23
- run : echo "TAGNAME=$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1) )" >> $GITHUB_OUTPUT
23
+ run : echo "TAGNAME=$(git describe --abbrev=0 ${{ steps.current_tag.outputs.TAGNAME}}^ )" >> $GITHUB_OUTPUT
24
24
- name : Get date
25
25
id : date
26
26
run : echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
52
52
create-next-milestone :
53
53
name : Create next milestone
54
54
runs-on : ubuntu-latest
55
+ needs : generate-release-notes
55
56
steps :
56
57
- uses : actions/checkout@v2
57
58
with :
66
67
67
68
- name : Get previous tag name
68
69
id : previous_tag
69
- run : echo "TAGNAME=$(git describe --abbrev=0 HEAD ^)" >> $GITHUB_OUTPUT
70
+ run : echo "TAGNAME=$(git describe --abbrev=0 ${{ steps.current_tag.outputs.TAGNAME}} ^)" >> $GITHUB_OUTPUT
70
71
71
72
- name : Get next version
72
73
id : next_tag
76
77
77
78
- name : Display calculated versions
78
79
run : |
80
+ echo "Previous version: ${{ steps.previous_tag.outputs.TAGNAME }}"
79
81
echo "Current version: ${{ steps.current_tag.outputs.TAGNAME }}"
80
- echo "Previous version: ${{ steps.previous_tag.outputs.TAGNAME }}"
81
- echo "Next version: ${{ steps.next_tag.outputs.patch }}"
82
+ echo "Next version: ${{ steps.next_tag.outputs.patch }}"
82
83
83
84
- name : Create milestone
84
85
uses : " WyriHaximus/github-action-create-milestone@v1"
91
92
92
93
with :
93
94
repository : ${{ github.repository }}
94
- milestone-title : ${{ steps.previous_tag .outputs.TAGNAME }}
95
+ milestone-title : ${{ steps.current_tag .outputs.TAGNAME }}
95
96
env :
96
97
GITHUB_TOKEN : " ${{ github.token }}"
97
98
You can’t perform that action at this time.
0 commit comments