You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# format the commit messages and add to CHANGES file
72
78
sed 's/^/* /' /tmp/tmux-tagged-release > /tmp/tmp_file
@@ -79,7 +85,7 @@ jobs:
79
85
git commit -m "Add to CHANGES for new release"
80
86
git push
81
87
82
-
- name: "Create and push tag"
88
+
- name: Create and push tag
83
89
run: |
84
90
git tag -a "v$VERSION" -m "Release v$VERSION"
85
91
git push origin "v$VERSION"
@@ -93,10 +99,24 @@ jobs:
93
99
*.tar.gz
94
100
id: "automatic_releases"
95
101
102
+
- name: Update next version number
103
+
run: |
104
+
IFS='.' read -ra VER <<< "$VERSION"
105
+
NEW_PATCH=$((VER[2]+1))
106
+
NEW_VERSION="${VER[0]}.${VER[1]}.$NEW_PATCH"
107
+
108
+
# Write back to file
109
+
sed -i "s/AC_INIT(\[tmux\], $VERSION)/AC_INIT([tmux], next-$NEW_VERSION)/" configure.ac
110
+
111
+
git add configure.ac
112
+
git commit -m "Bump version to next-$NEW_VERSION"
113
+
git push origin HEAD
114
+
96
115
- name: Create new release issue
97
116
run: |
117
+
gh label create -f $LABEL
98
118
previous_issue_number=$(gh issue list \
99
-
--label "$LABELS" \
119
+
--label "$LABEL" \
100
120
--json number \
101
121
--jq '.[0].number')
102
122
@@ -107,13 +127,14 @@ jobs:
107
127
108
128
new_issue_url=$(gh issue create \
109
129
--title "$NEW_TAG questions and comments" \
110
-
--label "release" \
130
+
--label "$LABEL" \
111
131
--body "$BODY")
112
132
113
133
echo "ISSUE_URL=$new_issue_url" >> $GITHUB_ENV
114
134
env:
115
135
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116
136
GH_REPO: ${{ github.repository }}
137
+
LABEL: release
117
138
BODY: |
118
139
Ask or discuss any quick questions about ${{ env.NEW_TAG }} here please.
119
140
Do not use this issue for bug reports, please open a new issue with full information, see [CONTRIBUTING](${{ env.BASE_URL }}/blob/master/.github/CONTRIBUTING.md).
@@ -122,23 +143,10 @@ jobs:
122
143
123
144
As always, thanks to the many people who contributed to both this and to previous releases.
124
145
125
-
- name: "Update Release Notes"
146
+
- name: Update release notes
126
147
run: |
127
148
gh release edit $NEW_TAG -n "$RELEASE_NOTE"
128
149
env:
129
150
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
130
151
RELEASE_NOTE: |
131
152
For a list of changes [please read the CHANGES file](${{ env.BASE_URL }}/blob/master/CHANGES); for release notes [please see this issue](${{ env.ISSUE_URL }})
132
-
133
-
- name: "Update next version number"
134
-
run: |
135
-
IFS='.' read -ra VER <<< "$VERSION"
136
-
NEW_PATCH=$((VER[2]+1))
137
-
NEW_VERSION="${VER[0]}.${VER[1]}.$NEW_PATCH"
138
-
139
-
# Write back to file
140
-
sed -i "s/AC_INIT(\[tmux\], $VERSION)/AC_INIT([tmux], next-$NEW_VERSION)/" configure.ac
0 commit comments