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