更新 GitHub Actions 工作流,添加获取 redissss 容器 ID 和执行 whoami 命令的步骤
Some checks failed
/ services-test (push) Successful in 0s
/ hashFiles (push) Successful in -1s
/ go-hashfiles (push) Successful in 21s
/ job1 (push) Successful in -1s
/ job3 (push) Has been skipped
/ job2 (push) Successful in -1s
/ test-timezone (push) Has been cancelled

This commit is contained in:
严浩
2025-02-26 12:32:23 +08:00
parent cf1def83c3
commit 503a81157e

View File

@ -18,4 +18,8 @@ jobs:
- name: Test with Redis
run: |
echo ${{ github.event.inputs.test }}
docker ps --format "table {{.Names}}"
docker ps --format "table {{.Names}}"
# 找出 redissss 的 container id
REDIS_CONTAINER_ID=$(docker ps --filter "name=redissss" --format "{{.ID}}")
echo $REDIS_CONTAINER_ID
docker exec $REDIS_CONTAINER_ID whoami