Skip to content

Commit

Permalink
Update check commit w/ GH-A env + unshallow fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
abejgonzalez committed Feb 16, 2022
1 parent fe31512 commit 453f01e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/scripts/check-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ search_submodule() {
echo "Running check on submodule $submodule in $dir"
# Initialize submodule and get the hashes
git submodule update --init $dir/$submodule
(cd $dir/$submodule && git fetch origin)
git -C $dir/$submodule fetch --unshallow

status=$(git submodule status)
hash=$(echo "$status" | grep "$dir.*$submodule " | awk '{print$1}' | grep -o "[[:alnum:]]*")
Expand All @@ -51,7 +51,7 @@ search () {

submodules=("cva6" "boom" "ibex" "gemmini" "hwacha" "icenet" "nvdla" "rocket-chip" "sha3" "sifive-blocks" "sifive-cache" "testchipip" "riscv-sodor")
dir="generators"
if [ "$CIRCLE_BRANCH" == "master" ] || [ "$CIRCLE_BRANCH" == "dev" ]
if [ "$GITHUB_REF_NAME" == "master" ] || [ "$GITHUB_REF_NAME" == "dev" ]
then
branches=("master" "main")
else
Expand Down Expand Up @@ -83,7 +83,7 @@ search

submodules=("coremark" "firemarshal" "nvdla-workload" "spec2017")
dir="software"
if [ "$CIRCLE_BRANCH" == "master" ] || [ "$CIRCLE_BRANCH" == "dev" ]
if [ "$GITHUB_REF_NAME" == "master" ] || [ "$GITHUB_REF_NAME" == "dev" ]
then
branches=("master")
else
Expand All @@ -93,7 +93,7 @@ search

submodules=("DRAMSim2" "axe" "barstools" "chisel-testers" "dsptools" "rocket-dsp-utils" "torture")
dir="tools"
if [ "$CIRCLE_BRANCH" == "master" ] || [ "$CIRCLE_BRANCH" == "dev" ]
if [ "$GITHUB_REF_NAME" == "master" ] || [ "$GITHUB_REF_NAME" == "dev" ]
then
branches=("master")
else
Expand All @@ -108,7 +108,7 @@ search

submodules=("firesim")
dir="sims"
if [ "$CIRCLE_BRANCH" == "master" ] || [ "$CIRCLE_BRANCH" == "dev" ]
if [ "$GITHUB_REF_NAME" == "master" ] || [ "$GITHUB_REF_NAME" == "dev" ]
then
branches=("master")
else
Expand Down

0 comments on commit 453f01e

Please sign in to comment.