Skip to content

Commit e60d3d9

Browse files
authored
Merge pull request #1185 from edoapra/releasetags-7-3-0
branch check in release tarball creation
2 parents fde1088 + 5b98776 commit e60d3d9

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/nwchem_releasetar.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,27 @@ jobs:
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

contrib/git.nwchem/dotar_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ echo TOPDIR is $TOPDIR
2626
rm -rf temp.$input_date
2727
mkdir -p temp.$input_date
2828
cd 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
3030
cd $TOPDIR/src/tools
3131
rm -f *.tar.*
3232
./get-tools-github

0 commit comments

Comments
 (0)