1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

ci: fix changelog check for github

This commit is contained in:
Martin Milata 2023-12-01 00:05:32 +01:00
parent 01eb896817
commit 91e98c58ba
3 changed files with 9 additions and 1 deletions

View File

@ -59,7 +59,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
submodules: "recursive" fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: "Run changelog check" - name: "Run changelog check"
run: ./ci/check_changelog.sh run: ./ci/check_changelog.sh

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -u
base_branch=main base_branch=main
fail=0 fail=0
subdirs="core core/embed/boardloader core/embed/bootloader core/embed/bootloader_ci legacy/bootloader legacy/firmware legacy/intermediate_fw python" subdirs="core core/embed/boardloader core/embed/bootloader core/embed/bootloader_ci legacy/bootloader legacy/firmware legacy/intermediate_fw python"
@ -51,8 +53,12 @@ check_release_branch () {
fi fi
} }
# gitlab
if echo "$CI_COMMIT_BRANCH" | grep -Eq "^(release|secfix)/"; then if echo "$CI_COMMIT_BRANCH" | grep -Eq "^(release|secfix)/"; then
check_release_branch check_release_branch
# github, TODO this only makes sense running on branches but not pull requests
elif $(git branch --show-current) | grep -Eq "^(release|secfix)/"; then
check_release_branch
else else
check_feature_branch check_feature_branch
fi fi

View File

@ -139,6 +139,7 @@ stdenvNoCC.mkDerivation ({
ffmpeg ffmpeg
dejavu_fonts dejavu_fonts
] ++ lib.optionals devTools [ ] ++ lib.optionals devTools [
shellcheck
gdb gdb
openocd-stm openocd-stm
] ++ lib.optionals (devTools && acceptJlink) [ ] ++ lib.optionals (devTools && acceptJlink) [