From 5a65b0fc9eb3a9fb4f44048bceb99818925f073d Mon Sep 17 00:00:00 2001 From: Antonio Aloisio Date: Tue, 2 Jul 2024 01:20:50 +0200 Subject: [PATCH] ci: skip changelog creation if the ui is not default to avoid having multiple CHANGELOG created --- .github/workflows/github-actions.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index d50d709de44..960c6160839 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -74,7 +74,7 @@ jobs: echo "Release detected. Updating version.conf with MAJOR_VER=${MAJOR_VER} and MINOR_VER=${MINOR_VER}" fi - name: Generate changelog - if: matrix.cfg.skip == false + if: matrix.cfg.skip == false && matrix.cfg.ui == 'default' run: | cd ${PROJECT_DIR} python tools/get-last-notes.py > "${CHANGELOG_FILE}" @@ -148,9 +148,11 @@ jobs: echo "No *.squashfs.pkgtb or *.w files found in ${IMAGE_PATH}" fi - # Changelogs are the same for each models since we are building from the same branch. We do use only the one generated by DSL-AX82U for now. - if [[ ${MODEL} == "gt-be98" ]]; then - cp "${CHANGELOG_FILE}" "${ARTIFACTS_DIR}" + # Changelogs are the same for each models since we are building from the same branch. We do use only the one generated by GT-BE98 for now. + if [[ "${MODEL}" == "gt-be98" ]]; then + if [ -e "${CHANGELOG_FILE}" ]; then + cp "${CHANGELOG_FILE}" "${ARTIFACTS_DIR}" + fi fi - name: "Archive artifacts" if: matrix.cfg.skip == false