[riot-notifications] [RIOT-OS/RIOT] Github Actions: static-test: use base reference as base branch instead of master (#15662)

Martine Lenders notifications at github.com
Tue Jan 5 14:53:25 CET 2021


@miri64 commented on this pull request.



> @@ -61,7 +61,11 @@ if [ -n "${CI_BASE_COMMIT}" ]; then
     git tag "${CI_BASE_BRANCH}" "${CI_BASE_COMMIT}"
 fi
 
-CI_BASE_BRANCH=${CI_BASE_BRANCH:-master}
+if [ -z "${GITHUB_RUN_ID}" ]; then
+    # only default to master when not running in a GitHub action
+    # (so GitHub can check release branches too)

If remains unset, so does `BASE_BRANCH` and thus changed files will return _all_ files (not just the once changed since `CI_BASE_BRANCH`, which when we _are_ on that branch will be no files), which we want for nightlies and branch checks.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15662#discussion_r551944236
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210105/e0b5c4c3/attachment.htm>


More information about the notifications mailing list