diff --git a/.github/workflows/nwchem_releasetar.yaml b/.github/workflows/nwchem_releasetar.yaml index 8238021813..4318116eba 100644 --- a/.github/workflows/nwchem_releasetar.yaml +++ b/.github/workflows/nwchem_releasetar.yaml @@ -26,6 +26,27 @@ jobs: do_tar: runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v5 + with: + show-progress: + fetch-depth: 200 + - name: check if tag exists + run: | + echo "checking if branch" ${{ github.event.inputs.branch }} "exists" + ls -lart + env + if ! git ls-remote --exit-code --heads \ + origin \ + refs/heads/${{ github.event.inputs.branch }} + then + echo branch is not there + git checkout -b ${{ github.event.inputs.branch }} + git push origin ${{ github.event.inputs.branch }} + else + echo branch is there + fi + cd $HOME - name: install pkg run: | sudo apt-get install -y curl make perl bash bzip2 tar gzip openmpi-bin diff --git a/contrib/git.nwchem/dotar_release.sh b/contrib/git.nwchem/dotar_release.sh index bf1990ef30..f82c4849c8 100755 --- a/contrib/git.nwchem/dotar_release.sh +++ b/contrib/git.nwchem/dotar_release.sh @@ -26,7 +26,7 @@ echo TOPDIR is $TOPDIR rm -rf temp.$input_date mkdir -p temp.$input_date cd temp.$input_date -git clone --depth 1 --shallow-submodules -b $branch https://github.com/nwchemgit/nwchem $TOPDIR +git clone --depth 1 --shallow-submodules -b $branch https://github.com/$GITHUB_REPOSITORY_OWNER/nwchem $TOPDIR cd $TOPDIR/src/tools rm -f *.tar.* ./get-tools-github