3333 {
3434 echo "body<<CHANGELOG_EOF"
3535 awk -v ver="[$version]" '
36- $0 == "## " ver { flag = 1; next }
36+ index($0, "## " ver) == 1 { flag = 1; next }
3737 flag && /^## \[/ { exit }
3838 flag { print }
3939 ' CHANGELOG.md
5151 generate_release_notes : true
5252
5353 # Backfill: build historical tags and attach their plugin zips to the existing releases.
54- # Triggered by pushing any tag named backfill-* (e.g. backfill- assets) ; inert for normal v* tags.
54+ # Triggered by pushing the exact tag backfill-assets; inert for normal v* tags.
5555 backfill-historical-builds :
56- if : startsWith( github.ref, 'refs/tags/backfill-')
56+ if : github.ref == 'refs/tags/backfill-assets'
5757 runs-on : ubuntu-latest
5858 strategy :
5959 fail-fast : false
9696 tag_name : ${{ matrix.tag }}
9797 files : build/distributions/*.zip
9898
99- # One-time: fill the v1.6.5 release body from CHANGELOG.md (it was created before the changelog existed) .
99+ # Refresh the v1.6.5 release body from CHANGELOG.md. Triggered by pushing a tag named backfill-notes-* .
100100 refresh-latest-release-notes :
101- if : startsWith(github.ref, 'refs/tags/backfill-')
101+ if : startsWith(github.ref, 'refs/tags/backfill-notes ')
102102 runs-on : ubuntu-latest
103103 steps :
104104 - name : Checkout
@@ -110,7 +110,7 @@ jobs:
110110 {
111111 echo "body<<CHANGELOG_EOF"
112112 awk '
113- $0 == "## [1.6.5]" { flag = 1; next }
113+ index($0, "## [1.6.5]") == 1 { flag = 1; next }
114114 flag && /^## \[/ { exit }
115115 flag { print }
116116 ' CHANGELOG.md
0 commit comments