From 2009a0dcee03e179d3157429beb4bb6edeacc94d Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong (cubxxw)" <3293172751nss@gmail.com> Date: Fri, 5 Jan 2024 20:38:40 +0800 Subject: [PATCH] update openim environment and status Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> --- .github/workflows/openimci.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/openimci.yml b/.github/workflows/openimci.yml index c1ed6e460..d376d9840 100644 --- a/.github/workflows/openimci.yml +++ b/.github/workflows/openimci.yml @@ -137,12 +137,20 @@ jobs: - name: Check the OpenIM environment and status id: docker_info run: | - sudo docker images > docker_images.txt - sudo docker ps > docker_containers.txt - IMAGES=$(cat docker_images.txt) - CONTAINERS=$(cat docker_containers.txt) - echo "::set-output name=images::$IMAGES" - echo "::set-output name=containers::$CONTAINERS" + sudo docker images > docker_images.txt + sudo docker ps > docker_containers.txt + + - name: Comment PR with message + uses: ./ + id: nrt_message + with: + message: | + Current branch is `${{ github.head_ref }}`. + _(execution **${{ github.run_id }}** / attempt **${{ github.run_attempt }}**)_ + comment_tag: nrt_message + reactions: eyes, rocket + mode: recreate + GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} - name: Comment PR uses: thollander/actions-comment-pull-request@v2 @@ -150,11 +158,11 @@ jobs: message: | ### Docker Images: ``` - ${{ steps.docker_info.outputs.images }} + ${{ readFile('docker_images.txt') }} ``` ### Docker Processes: ``` - ${{ steps.docker_info.outputs.containers }} + ${{ readFile('docker_containers.txt') }} ``` GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}