Skip to content

Commit

Permalink
ci: improve GitHub Actions and streamline output handling
Browse files Browse the repository at this point in the history
- Update GitHub Actions syntax for setting output
- Remove redundant echo of the public key

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Jun 6, 2024
1 parent 06fd935 commit 0e34489
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,11 @@ jobs:
run: |
SSHD_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${{ job.services.sshd.id }})
echo "SSHD IP: $SSHD_IP"
echo "::set-output name=sshd_ip::$SSHD_IP"
echo "sshd_ip=$SSHD_IP" >> $GITHUB_OUTPUT
- name: Run tests
run: |
SSHD_IP=${{ steps.sshd.outputs.sshd_ip }}
echo "SSHD IP: $SSHD_IP"
echo "${{ env.PUBLIC_KEY }}"
# 在這裡運行你的測試命令,並使用獲取到的 IP 地址
echo "Running tests..."

0 comments on commit 0e34489

Please sign in to comment.