Skip to content

Commit

Permalink
ci: skip changelog creation if the ui is not default to avoid having …
Browse files Browse the repository at this point in the history
…multiple CHANGELOG created
  • Loading branch information
gnuton committed Jul 3, 2024
1 parent 435d2ff commit 5a65b0f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5a65b0f

Please sign in to comment.