From 5fa69a5151bb7423ef81b945e17076517e69945c Mon Sep 17 00:00:00 2001 From: Tobias <5702338+T0biii@users.noreply.github.com> Date: Wed, 30 Oct 2024 17:29:23 +0100 Subject: [PATCH] [Backport legacy] ci,make: Add Build_NUMBER, CI ID or PR ID (#506) (#509) --- .github/workflows/firmware.yml | 2 +- Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/firmware.yml b/.github/workflows/firmware.yml index c0a694b..7ca31c2 100644 --- a/.github/workflows/firmware.yml +++ b/.github/workflows/firmware.yml @@ -56,7 +56,7 @@ jobs: id: compile run: | git checkout -b patched ${GITHUB_SHA} - make BROKEN=1 GLUON_TARGETS=${{ matrix.target }} V=s + make BROKEN=1 GLUON_TARGETS=${{ matrix.target }} BUILD_NUMBER=${{ github.event.pull_request.number && format('pr{0}', github.event.pull_request.number) || github.run_id && format('run{0}', github.run_id) }} V=s echo "status=success" >> $GITHUB_OUTPUT - name: Upload firmware ${{ matrix.target }} uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 diff --git a/Makefile b/Makefile index 623b6e6..956be8d 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,8 @@ ifneq (,$(shell git describe --exact-match --tags 2>/dev/null)) else GLUON_AUTOUPDATER_BRANCH := experimental EXP_FALLBACK = $(shell date '+%Y%m%d') - BUILD_NUMBER ?= $(EXP_FALLBACK) - GLUON_RELEASE := $(shell git describe --tags)~exp$(BUILD_NUMBER) + BUILD_NUMBER ?= exp$(EXP_FALLBACK) + GLUON_RELEASE := $(shell git describe --tags)~$(BUILD_NUMBER) endif JOBS ?= $(shell nproc)