add release title

pull/24/head
Cullen Watson 2023-08-28 08:24:25 -05:00
parent 0193acc146
commit 9d85e011e3
1 changed files with 5 additions and 5 deletions

View File

@ -34,12 +34,11 @@ jobs:
push: true
tags: ghcr.io/${{ github.repository_owner }}/${{ env.REPO_NAME_LOWER }}/jobspy_api:latest
- name: Set Release Tag Name and Title
- name: Set Release Tag Name
run: |
TAG_NAME=$(echo ${{ github.ref }} | sed -e 's/refs\/heads\///' -e 's/\//-/g')
echo "RELEASE_TAG=${TAG_NAME}-$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
echo "RELEASE_TITLE=JobSpy Release for ${{ github.ref }} on $(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
# This creates a tag based on the current date: v0.YYMMDD.0
TAG_VERSION="v0.$(date +'%y%m%d').0"
echo "RELEASE_TAG=${TAG_VERSION}" >> $GITHUB_ENV
- name: Create Release
id: create_release
@ -55,3 +54,4 @@ jobs:
- name: Attach Docker Image to Release
run: |
echo "Image ghcr.io/${{ github.repository }}/jobspy_api:latest is available under assets in the release."