临时测试.yaml

This commit is contained in:
严浩
2024-10-17 18:58:51 +08:00
parent ff4c1e3e10
commit 9134dd1b6b

15
.github/workflows/临时测试.yaml vendored Normal file
View File

@@ -0,0 +1,15 @@
on:
push:
jobs:
with-git-folder:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- run: |
[ -d .git ] && { echo "🤖 Found .git folder"; echo "git-folder-exists=true" >> $GITHUB_OUTPUT; } || { echo "🤖 No .git folder found"; echo "git-folder-exists=false" >> $GITHUB_OUTPUT; }
without-git-folder:
runs-on: ubuntu-latest
steps:
- run: |
[ -d .git ] && { echo "🤖 Found .git folder"; echo "git-folder-exists=true" >> $GITHUB_OUTPUT; } || { echo "🤖 No .git folder found"; echo "git-folder-exists=false" >> $GITHUB_OUTPUT; }