mirror of https://github.com/Bunsly/JobSpy
add release title
parent
0193acc146
commit
9d85e011e3
|
@ -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."
|
||||
|
||||
|
|
Loading…
Reference in New Issue