2 name: Release announcement
4 # yamllint disable-line rule:truthy
9 if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
10 runs-on: ubuntu-latest
12 - name: Checkout repository
13 uses: actions/checkout@v4
19 uses: devops-actions/action-get-tag@v1.0.2
22 VER=$(echo "${{ steps.tag.outputs.tag }}" | tr . -)
23 echo "ANCHOR=${VER}" >> $GITHUB_ENV
24 - name: Notify mailing list
25 uses: dawidd6/action-send-mail@v3
27 server_address: ${{ vars.MAIL_SERVER }}
28 server_port: ${{ vars.MAIL_SERVER_PORT }}
30 username: ${{ secrets.MAIL_USER }}
31 password: ${{ secrets.MAIL_PASSWORD }}
32 subject: global-jjb ${{ steps.tag.outputs.tag }} released
33 to: lf-releng@lists.linuxfoundation.org
34 from: ${{ vars.MAIL_FROM }}
38 global-jjb ${{ steps.tag.outputs.tag }} is released. Thanks to everyone who contributed
39 to this release. Release notes are avaiable online at:
41 https://docs.releng.linuxfoundation.org/projects/global-jjb/en/stable/release-notes.html#${{ env.ANCHOR }}
45 - name: Configure Python
46 uses: actions/setup-python@v4
49 - name: Generate reno report
51 pipx run tox -e reno -- report \
52 --version "${{ steps.tag.outputs.tag }}" \
53 2>/dev/null > reno-notes.md || true
54 if grep -q 'reno: FAIL' reno-notes.md
56 touch modified-reno-notes.md
58 sed '/^\.pkg.*$/d' reno-notes.md |
63 sed '1d' > modified-reno-notes.md
65 - name: Create Release Notes
67 gh release create ${{ steps.tag.outputs.tag }} --generate-notes \
68 -F modified-reno-notes.md
70 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}