update openim environment and status

Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com>
pull/1696/head
Xinwei Xiong (cubxxw) 2 years ago
parent b2d684df6b
commit 4d63c72b13

@ -281,19 +281,20 @@ jobs:
sudo make init sudo make init
sudo make image sudo make image
- name: Check the OpenIM environment and status - name: Get Docker Images and Processes
id: docker_info
run: | run: |
sudo echo "### Docker Images:" >> /tmp/out.txt echo "::set-output name=images::$(sudo docker images)"
sudo docker images >> /tmp/out.txt echo "::set-output name=processes::$(sudo docker ps)"
sudo echo "### Docker Processes:" >> /tmp/out.txt - name: Comment PR with Docker Info
sudo docker ps >> /tmp/out.txt uses: ./ # Replace with the appropriate action to comment on PR
- name: Read /tmp/out.txt
id: out
uses: juliangruber/read-file-action@v1
with: with:
path: /tmp/out.txt message: |
### Docker Images:
- name: Echo /tmp/out.txt ${{ steps.docker_info.outputs.images }}
run: | ### Docker Processes:
echo "${{ steps.out.outputs.content }}" ${{ steps.docker_info.outputs.processes }}
comment_tag: docker_info
reactions: eyes, rocket
mode: recreate
# Include any other steps as needed
Loading…
Cancel
Save