From 1daa8a255ff1460c04a34b26a3ecc3f7febc42af Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Fri, 16 Aug 2019 00:08:44 +0900 Subject: [PATCH] enhance: test job --- .github/workflows/push.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index eb24569..56645f4 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -10,10 +10,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - name: Docker build - if: - github.event.deleted == false - run: docker build -t peaceiris/actions-hugo . - - name: Check Hugo version - if: success() - run: docker run peaceiris/actions-hugo:latest version + - name: Docker build and print Hugo version + if: github.event.deleted == false + run: | + docker build -t peaceiris/actions-hugo . && + docker run peaceiris/actions-hugo:latest version || + echo -e "\e[33mjob skipped\e[m"