From aa11a3d7f10b492b708a0c372cbb423b64bfaf27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Fri, 18 Oct 2024 11:36:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/临时测试.yaml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/临时测试.yaml b/.github/workflows/临时测试.yaml index fcdf705..a987f7d 100644 --- a/.github/workflows/临时测试.yaml +++ b/.github/workflows/临时测试.yaml @@ -2,22 +2,9 @@ on: push: jobs: - with-git-folder: + job1: runs-on: ubuntu-latest steps: - uses: actions/checkout@main - - id: check-git-folder - run: | - # 🤖 判断是否存在 .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; } - - name: Show git-folder-exists - run: echo ${{ steps.check-git-folder.outputs.git-folder-exists }} - without-git-folder: - runs-on: ubuntu-latest - steps: - - id: check-git-folder - run: | - # 🤖 判断是否存在 .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; } - - name: Show git-folder-exists - run: echo ${{ steps.check-git-folder.outputs.git-folder-exists }} \ No newline at end of file + with: + repository: 'actions/checkout' \ No newline at end of file