Skip to content

Commit 0b508c3

Browse files
committed
restore .git to avoid pitfalls
1 parent ee47f33 commit 0b508c3

File tree

1 file changed

+3
-1
lines changed
  • .github/actions/cargo-install-upload-artifacts

1 file changed

+3
-1
lines changed

.github/actions/cargo-install-upload-artifacts/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ runs:
2727
echo "::set-output name=out-dir::${out_dir}"
2828
echo "::set-output name=artifacts-dir::${artifacts_dir}"
2929
shell: bash
30-
- run: rm -rf .git
30+
- run: mv .git .git.bak
3131
shell: bash
3232
- name: Build with all features
3333
run:
@@ -82,3 +82,5 @@ runs:
8282
name: ${{ steps.archive.outputs.name }}
8383
path: ${{ steps.archive.outputs.path }}
8484
if-no-files-found: error
85+
- run: mv .git.bak .git
86+
shell: bash

0 commit comments

Comments
 (0)