临时测试.yaml
All checks were successful
/ with-git-folder (push) Successful in 9s
/ without-git-folder (push) Successful in 7s
/ job3 (push) Has been skipped
/ job1 (push) Successful in 7s
/ job2 (push) Successful in 6s
/ hashFiles (push) Successful in 7s
/ go-hashfiles (push) Successful in 1m14s
/ Cache-Java-Test (push) Successful in 1m23s
/ opt_hostedtoolcache (push) Successful in 7s

This commit is contained in:
严浩
2024-10-17 18:58:51 +08:00
parent ff4c1e3e10
commit 9134dd1b6b

15
.github/workflows/临时测试.yaml vendored Normal file
View File

@ -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; }