Skip to content

Commit

Permalink
add $GITHUB_JOB for ubuntu\gha\gha-checkout\checkout.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
zedong-peng committed Dec 22, 2023
1 parent aa410ae commit 7baaa39
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/gluten-te/ubuntu/gha/gha-checkout/checkout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ then
exit 1
fi

export EXTRA_DOCKER_OPTIONS="$EXTRA_DOCKER_OPTIONS --name gha-checkout-$GITHUB_RUN_ID --detach -v $BASEDIR/scripts:/opt/scripts"
export EXTRA_DOCKER_OPTIONS="$EXTRA_DOCKER_OPTIONS --name gha-checkout-$GITHUB_JOB-$GITHUB_RUN_ID --detach -v $BASEDIR/scripts:/opt/scripts"
export NON_INTERACTIVE=ON

$BASEDIR/../../cbash-build.sh 'sleep 14400'
Expand Down
2 changes: 1 addition & 1 deletion tools/gluten-te/ubuntu/gha/gha-checkout/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ then
exit 1
fi

docker stop gha-checkout-$GITHUB_RUN_ID || true
docker stop gha-checkout-$GITHUB_JOB-$GITHUB_RUN_ID || true
2 changes: 1 addition & 1 deletion tools/gluten-te/ubuntu/gha/gha-checkout/exec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ then
exit 1
fi

docker exec gha-checkout-$GITHUB_RUN_ID bash -c "cd /opt/gluten && $BASH_ARGS"
docker exec gha-checkout-$GITHUB_JOB-$GITHUB_RUN_ID bash -c "cd /opt/gluten && $BASH_ARGS"

0 comments on commit 7baaa39

Please sign in to comment.