临时测试.yaml
This commit is contained in:
10
.github/workflows/临时测试.yaml
vendored
10
.github/workflows/临时测试.yaml
vendored
@@ -6,10 +6,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
- run: |
|
- id: check-git-folder
|
||||||
|
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; }
|
[ -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
|
||||||
|
run: echo ${{ steps.check-git-folder.outputs.git-folder-exists }}
|
||||||
without-git-folder:
|
without-git-folder:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- id: check-git-folder
|
||||||
|
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; }
|
[ -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
|
||||||
|
run: echo ${{ steps.check-git-folder.outputs.git-folder-exists }}
|
Reference in New Issue
Block a user