File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 2626 do_tar :
2727 runs-on : ubuntu-latest
2828 steps :
29+ - name : Checkout code
30+ uses : actions/checkout@v5
31+ with :
32+ show-progress :
33+ fetch-depth : 200
34+ - name : check if tag exists
35+ run : |
36+ echo "checking if branch" ${{ github.event.inputs.branch }} "exists"
37+ ls -lart
38+ env
39+ if ! git ls-remote --exit-code --heads \
40+ origin \
41+ refs/heads/${{ github.event.inputs.branch }}
42+ then
43+ echo branch is not there
44+ git checkout -b ${{ github.event.inputs.branch }}
45+ git push origin ${{ github.event.inputs.branch }}
46+ else
47+ echo branch is there
48+ fi
49+ cd $HOME
2950 - name : install pkg
3051 run : |
3152 sudo apt-get install -y curl make perl bash bzip2 tar gzip openmpi-bin
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ echo TOPDIR is $TOPDIR
2626rm -rf temp.$input_date
2727mkdir -p temp.$input_date
2828cd temp.$input_date
29- git clone --depth 1 --shallow-submodules -b $branch https://github.com/nwchemgit /nwchem $TOPDIR
29+ git clone --depth 1 --shallow-submodules -b $branch https://github.com/$GITHUB_REPOSITORY_OWNER /nwchem $TOPDIR
3030cd $TOPDIR /src/tools
3131rm -f * .tar.*
3232./get-tools-github
You can’t perform that action at this time.
0 commit comments