临时测试.yaml
This commit is contained in:
4
.github/workflows/临时测试.yaml
vendored
4
.github/workflows/临时测试.yaml
vendored
@@ -8,7 +8,7 @@ jobs:
|
|||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
- id: check-git-folder
|
- id: check-git-folder
|
||||||
run: |
|
run: |
|
||||||
# 🤖 判断是否存在 .git 文件夹
|
# 🤖 判断是否存在 .git 文件夹 🤖
|
||||||
[ -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; }
|
[ -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; }
|
||||||
- name: Show git-folder-exists
|
- name: Show git-folder-exists
|
||||||
run: echo ${{ steps.check-git-folder.outputs.git-folder-exists }}
|
run: echo ${{ steps.check-git-folder.outputs.git-folder-exists }}
|
||||||
@@ -17,7 +17,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- id: check-git-folder
|
- id: check-git-folder
|
||||||
run: |
|
run: |
|
||||||
# 🤖 判断是否存在 .git 文件夹
|
# 🤖 判断是否存在 .git 文件夹 🤖
|
||||||
[ -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; }
|
[ -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; }
|
||||||
- name: Show git-folder-exists
|
- name: Show git-folder-exists
|
||||||
run: echo ${{ steps.check-git-folder.outputs.git-folder-exists }}
|
run: echo ${{ steps.check-git-folder.outputs.git-folder-exists }}
|
Reference in New Issue
Block a user