Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 3efdbda

Browse files
committed
github_actorに無効な文字列を渡したときのテストを追加
1 parent 47d839f commit 3efdbda

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,26 @@ jobs:
180180
exit 1
181181
fi
182182
183+
- name: Test invalid github_actor value
184+
uses: ./
185+
with:
186+
github_actor: 'github-actions%5Bbot%5D'
187+
depth: ''
188+
checkout_dir: step.actor_includes_invalid_character
189+
190+
- name: Have Endpoint= line on `git lfs env` outputs
191+
run: |
192+
pushd step.actor_includes_invalid_character
193+
if [ $(git lfs env | grep 'Endpoint=' | grep 'info/lfs' | wc -l) == '1' ]; then
194+
# Found a line
195+
# Endpoint=github.com/org/repo.git/info/lfs
196+
exit 0
197+
else
198+
echo "::error:: git lfs envの値に `Endpoint=...info/lfs` の行が見つかりません"
199+
exit 1
200+
fi
201+
popd
202+
183203
- name: Setup github.com connection
184204
continue-on-error: true
185205
run: |

0 commit comments

Comments
 (0)