X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=.github%2Fworkflows%2Frelease.yaml;h=683ac84b54a7827661ca97a12394ca465190b5c8;hb=6b7742eb7b8c8b229fd6f0a834de5bc2fd9c4ec1;hp=75091ea3e52711f9d29dd521a4d3532d4501da49;hpb=55bbf243b0d9a427273e915d9454564f4af4e92a;p=releng%2Fglobal-jjb.git diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 75091ea3..683ac84b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,9 +11,6 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - with: - fetch-depth: 30 - fetch-tags: true - name: Get tag id: tag uses: devops-actions/action-get-tag@v1.0.2 @@ -21,33 +18,14 @@ jobs: run: >- VER=$(echo "${{ steps.tag.outputs.tag }}" | tr . -) echo "ANCHOR=${VER}" >> $GITHUB_ENV - - name: Notify mailing list - uses: dawidd6/action-send-mail@v3 - with: - server_address: ${{ vars.MAIL_SERVER }} - server_port: ${{ vars.MAIL_SERVER_PORT }} - secure: true - username: ${{ secrets.MAIL_USER }} - password: ${{ secrets.MAIL_PASSWORD }} - subject: global-jjb ${{ steps.tag.outputs.tag }} released - to: lf-releng@lists.linuxfoundation.org - from: ${{ vars.MAIL_FROM }} - body: | - Hi Everyone, - - global-jjb ${{ steps.tag.outputs.tag }} is released. Thanks to everyone who contributed - to this release. Release notes are avaiable online at: - - https://docs.releng.linuxfoundation.org/projects/global-jjb/en/stable/release-notes.html#${{ env.ANCHOR }} - - Cheers, - LF Releng - name: Configure Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - name: Generate reno report - run: >- + run: | + # fetch last 30 changes + git fetch --depth=30 pipx run tox -e reno -- report \ --version "${{ steps.tag.outputs.tag }}" \ 2>/dev/null > reno-notes.md || true @@ -63,7 +41,7 @@ jobs: sed '1d' > modified-reno-notes.md fi - name: Create Release Notes - run: >- + run: | gh release create ${{ steps.tag.outputs.tag }} --generate-notes \ -F modified-reno-notes.md env: