From 80cb350384095ffaabdfaff8a8a1f68f47ff4400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Thu, 17 Oct 2024 19:01:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E6=B5=8B=E8=AF=95.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/临时测试.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/临时测试.yaml b/.github/workflows/临时测试.yaml index 2e235d2..960f07e 100644 --- a/.github/workflows/临时测试.yaml +++ b/.github/workflows/临时测试.yaml @@ -6,10 +6,16 @@ jobs: runs-on: ubuntu-latest steps: - 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; } + - name: Show git-folder-exists + run: echo ${{ steps.check-git-folder.outputs.git-folder-exists }} 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; } \ No newline at end of file + - 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; } + - name: Show git-folder-exists + run: echo ${{ steps.check-git-folder.outputs.git-folder-exists }} \ No newline at end of file