From 9134dd1b6b514a6797d3e785f373095a998b1c7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Thu, 17 Oct 2024 18:58:51 +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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/临时测试.yaml diff --git a/.github/workflows/临时测试.yaml b/.github/workflows/临时测试.yaml new file mode 100644 index 0000000..2e235d2 --- /dev/null +++ b/.github/workflows/临时测试.yaml @@ -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; } \ No newline at end of file