Skip to content

Commit 60197e3

Browse files
authored
Address actions/checkout issues (#31)
Closes #30 Signed-off-by: Mike Detwiler <mike@detwiler.io>
1 parent 4bcab57 commit 60197e3

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ jobs:
3737
with:
3838
fetch-depth: 0
3939

40+
# This step addresses issues with actions/checkout
41+
# see: https://github.com/actions/checkout/issues/290
42+
# see: https://github.com/actions/checkout/issues/915
43+
- name: Post Checkout Hacks
44+
run: |
45+
git config --global --add safe.directory $(pwd)
46+
git fetch --force --tags
47+
4048
- name: Configure Gnulib Cache Key
4149
run: echo "GNULIB_CACHE_KEY=`git submodule status .gnulib | sed -re 's/^.([0-9,a-f]{1,}) .*$/\1/'`" >>$GITHUB_ENV
4250

@@ -61,12 +69,8 @@ jobs:
6169
git clone $GNULIB_URL $GNULIB_REFDIR
6270
fi
6371
64-
# bootstrap initializes submodules, so we need safe.directory
65-
# see: https://github.com/actions/checkout/issues/915
6672
- name: Bootstrap
67-
run: |
68-
git config --global --add safe.directory $(pwd)
69-
./bootstrap --install-buildreqs
73+
run: ./bootstrap --install-buildreqs
7074

7175
- name: Configure
7276
run: ./configure --prefix=$RUNNER_TEMP/.local

0 commit comments

Comments
 (0)