Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
2effe07cf0
commit
b00b6c0482
1 changed files with 4 additions and 4 deletions
8
.github/workflows/nightly.yml
vendored
8
.github/workflows/nightly.yml
vendored
|
|
@ -24,8 +24,8 @@ jobs:
|
||||||
- name: Generate version
|
- name: Generate version
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
DATE=$(date +%Y%m%d)
|
DATE=$(date -u +%Y%m%d)
|
||||||
SHA=$(git rev-parse --short HEAD)
|
SHA=$(git rev-parse --short=8 HEAD)
|
||||||
BASE_VERSION=$(git describe --tags --match "v*" --exclude "*nightly*" --abbrev=0 2>/dev/null || true)
|
BASE_VERSION=$(git describe --tags --match "v*" --exclude "*nightly*" --abbrev=0 2>/dev/null || true)
|
||||||
if [ -z "$BASE_VERSION" ] || [ "$BASE_VERSION" = "v0.0.0" ]; then
|
if [ -z "$BASE_VERSION" ] || [ "$BASE_VERSION" = "v0.0.0" ]; then
|
||||||
VERSION="nightly-${DATE}-${SHA}"
|
VERSION="nightly-${DATE}-${SHA}"
|
||||||
|
|
@ -109,7 +109,7 @@ jobs:
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [generate-version, build]
|
needs: [generate-version, build, build-docker]
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -124,7 +124,7 @@ jobs:
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
TAG="${{ needs.generate-version.outputs.tag }}"
|
TAG="${{ needs.generate-version.outputs.tag }}"
|
||||||
TITLE="${{ needs.generate-version.outputs.version }}"
|
TITLE="${{ needs.generate-version.outputs.version }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue