X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=.github%2Fworkflows%2Frelease.yaml;h=0c5d264574ff35ad966f3cb5b33346a23d749d6a;hb=92288f0bd6754d4d7141d8ed47c9b5256ece7395;hp=75091ea3e52711f9d29dd521a4d3532d4501da49;hpb=55bbf243b0d9a427273e915d9454564f4af4e92a;p=releng%2Fglobal-jjb.git diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 75091ea3..0c5d2645 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 @@ -47,7 +44,9 @@ jobs: 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 +62,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: