]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci: fix building against request libhtp/sv PR 5347/head 5349/head
authorJason Ish <jason.ish@oisf.net>
Tue, 1 Sep 2020 16:55:57 +0000 (10:55 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 1 Sep 2020 17:00:51 +0000 (11:00 -0600)
The variable name was wrong, causing the libhtp-pr and sv-pr
parameters in the commit message to not be applied.

.github/workflows/builds.yml

index b09d9a314e9e08cdfaa5d485ddfcc24dd5f0a345..ee030b550335c43af82183b93a923a1fe0be042b 100644 (file)
@@ -47,11 +47,11 @@ jobs:
           fi
           echo "::set-env name=libhtp_repo::${libhtp_repo:-${DEFAULT_LIBHTP_REPO}}"
           echo "::set-env name=libhtp_branch::${libhtp_branch:-${DEFAULT_LIBHTP_BRANCH}}"
-          echo "::set-env name=libhtp_pr::${libhtp_branch:-${DEFAULT_LIBHTP_PR}}"
+          echo "::set-env name=libhtp_pr::${libhtp_pr:-${DEFAULT_LIBHTP_PR}}"
 
           echo "::set-env name=su_repo::${su_repo:-${DEFAULT_SU_REPO}}"
           echo "::set-env name=su_branch::${su_branch:-${DEFAULT_SU_BRANCH}}"
-          echo "::set-env name=su_pr::${su_branch:-${DEFAULT_SU_PR}}"
+          echo "::set-env name=su_pr::${su_pr:-${DEFAULT_SU_PR}}"
 
           echo "::set-env name=sv_repo::${sv_repo:-${DEFAULT_SV_REPO}}"
           echo "::set-env name=sv_branch::${sv_branch:-${DEFAULT_SV_BRANCH}}"
@@ -61,7 +61,7 @@ jobs:
           git clone --depth 1 ${libhtp_repo} -b ${libhtp_branch} libhtp
           if [[ "${libhtp_pr}" != "" ]]; then
               cd libhtp
-              git fetch origin pull/${su_pr}/head:prep
+              git fetch origin pull/${libhtp_pr}/head:prep
               git checkout prep
               cd ..
           fi