branch check in release tarball creation [ci skip]

This commit is contained in:
edoapra 2025-10-24 14:35:26 -07:00
parent fde1088618
commit 5b98776e49
No known key found for this signature in database
GPG key ID: 9E6A0B70826967BA
2 changed files with 22 additions and 1 deletions

View file

@ -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

View file

@ -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