@@ -59,40 +59,27 @@ jobs:
59
59
github :
60
60
name : GitHub Milestones
61
61
runs-on : ubuntu-latest
62
+ permissions :
63
+ issues : write
62
64
timeout-minutes : 10
63
65
steps :
64
66
- name : Get next versions
65
67
id : semvers
66
- uses : WyriHaximus/github-action-next-semvers@v1.0
68
+ uses : WyriHaximus/github-action-next-semvers@v1.2.1
67
69
with :
68
70
version : ${{ github.event.release.tag_name }}
69
71
70
72
- name : Create next patch milestone
71
-
72
- with :
73
- route : POST /repos/:repository/milestones
74
- repository : ${{ github.repository }}
75
- title : ${{ steps.semvers.outputs.patch }}
73
+ run : gh api "/repos/${{ github.repository }}/milestones" --field "title=${{ steps.semvers.outputs.patch }}" || true
76
74
env :
77
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
78
- continue-on-error : true
75
+ GITHUB_TOKEN : ${{ github.token }}
79
76
80
77
- name : Create next minor milestone
81
-
82
- with :
83
- route : POST /repos/:repository/milestones
84
- repository : ${{ github.repository }}
85
- title : ${{ steps.semvers.outputs.minor }}
78
+ run : gh api "/repos/${{ github.repository }}/milestones" --field "title=${{ steps.semvers.outputs.minor }}" || true
86
79
env :
87
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
88
- continue-on-error : true
80
+ GITHUB_TOKEN : ${{ github.token }}
89
81
90
82
- name : Create next major milestone
91
-
92
- with :
93
- route : POST /repos/:repository/milestones
94
- repository : ${{ github.repository }}
95
- title : ${{ steps.semvers.outputs.major }}
83
+ run : gh api "/repos/${{ github.repository }}/milestones" --field "title=${{ steps.semvers.outputs.major }}" || true
96
84
env :
97
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
98
- continue-on-error : true
85
+ GITHUB_TOKEN : ${{ github.token }}
0 commit comments