Skip to content

Commit dad33f8

Browse files
committed
Fixed GitHub workflow to init git repo in docker container for later archiving.
1 parent 695c32d commit dad33f8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ jobs:
2222
uses: actions/checkout@v2
2323
with:
2424
path: textadept/modules/file_diff
25+
- name: Git init if necessary
26+
shell: bash
27+
run: |
28+
# If git version is less than 2.18, a git clone will not be made in
29+
# this container. In that case, make a temporary repository so
30+
# "make release" can archive the repo's contents for release.
31+
if [[ -d .git ]]; then exit 0; fi
32+
git init
33+
git add .
34+
git config --global user.email "[email protected]"
35+
git config --global user.name "none"
36+
git commit -m 'none'
2537
- name: Build
2638
shell: bash
2739
run: |

0 commit comments

Comments
 (0)