mirror of
https://github.com/containers/podman.git
synced 2025-07-03 09:17:15 +08:00
Release workflow: Include candidate descriptor
Assist humans by indicating clearly whe a release announcement is pertaining to a candidate. Otherwise, it's possible someone may overlook the `-rcX` version suffix. Also fix a quoting problem missed in testing. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
18
.github/workflows/release-artifacts.yml
vendored
18
.github/workflows/release-artifacts.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
|||||||
- name: Provide github event JSON for examination
|
- name: Provide github event JSON for examination
|
||||||
run: |
|
run: |
|
||||||
echo "::group::Event JSON"
|
echo "::group::Event JSON"
|
||||||
jq --color-output "." ${{ github.event_path }}"
|
jq --color-output "." "${{ github.event_path }}"
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
- name: Determine Version
|
- name: Determine Version
|
||||||
@ -208,7 +208,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
gh workflow run upload-win-installer.yml -f version=${{steps.getversion.outputs.version}} -f dryrun=false
|
gh workflow run upload-win-installer.yml -f version=${{steps.getversion.outputs.version}} -f dryrun=false
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
uploaded: ${{ steps.upload.outputs.complete }}
|
uploaded: ${{ steps.upload.outputs.complete }}
|
||||||
version: ${{ steps.getversion.outputs.version }}
|
version: ${{ steps.getversion.outputs.version }}
|
||||||
@ -219,16 +219,24 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- name: Format release email
|
- name: Format release email
|
||||||
|
id: format
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ needs.build.outputs.version }}
|
VERSION: ${{ needs.build.outputs.version }}
|
||||||
run: |
|
run: |
|
||||||
|
if grep -Eq '.+-rc' <<<"$VERSION"
|
||||||
|
then
|
||||||
|
RC_PREFIX="candidate "
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "mail_subj=Podman ${RC_PREFIX}${VERSION} Released" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
cat <<EOF>email_body.txt
|
cat <<EOF>email_body.txt
|
||||||
Hi all,
|
Hi all,
|
||||||
|
|
||||||
Podman $VERSION is now available. You may view the full details at
|
Podman ${RC_PREFIX}${VERSION} is now available. You may view the full details at
|
||||||
https://github.com/${{ github.repository }}/releases/tag/$VERSION
|
https://github.com/${{ github.repository }}/releases/tag/$VERSION
|
||||||
|
|
||||||
Release Notes:
|
Release ${RC_PREFIX}Notes:
|
||||||
--------------
|
--------------
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -248,7 +256,7 @@ jobs:
|
|||||||
server_port: 465
|
server_port: 465
|
||||||
username: ${{secrets.ACTION_MAIL_USERNAME}}
|
username: ${{secrets.ACTION_MAIL_USERNAME}}
|
||||||
password: ${{secrets.ACTION_MAIL_PASSWORD}}
|
password: ${{secrets.ACTION_MAIL_PASSWORD}}
|
||||||
subject: Podman ${{ needs.build.outputs.version }} Released
|
subject: ${{ steps.format.outputs.mail_subj }}
|
||||||
to: Podman List <podman@lists.podman.io>
|
to: Podman List <podman@lists.podman.io>
|
||||||
from: ${{secrets.ACTION_MAIL_SENDER}}
|
from: ${{secrets.ACTION_MAIL_SENDER}}
|
||||||
body: file://./email_body.txt
|
body: file://./email_body.txt
|
||||||
|
Reference in New Issue
Block a user