mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-21 06:25:21 -04:00
branch check in release tarball creation [ci skip]
This commit is contained in:
parent
fde1088618
commit
5b98776e49
2 changed files with 22 additions and 1 deletions
21
.github/workflows/nwchem_releasetar.yaml
vendored
21
.github/workflows/nwchem_releasetar.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue