临时测试
Some checks failed
/ Cache-Java-Test (push) Successful in 8s
/ opt_hostedtoolcache (push) Successful in 6s
/ job2 (push) Successful in 6s
/ job3 (push) Has been skipped
/ hashFiles (push) Successful in 11s
/ go-hashfiles (push) Successful in 29s
/ job1 (push) Failing after 44s
Some checks failed
/ Cache-Java-Test (push) Successful in 8s
/ opt_hostedtoolcache (push) Successful in 6s
/ job2 (push) Successful in 6s
/ job3 (push) Has been skipped
/ hashFiles (push) Successful in 11s
/ go-hashfiles (push) Successful in 29s
/ job1 (push) Failing after 44s
This commit is contained in:
19
.github/workflows/临时测试.yaml
vendored
19
.github/workflows/临时测试.yaml
vendored
@ -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 }}
|
||||
with:
|
||||
repository: 'actions/checkout'
|
Reference in New Issue
Block a user