enhance: test job

This commit is contained in:
peaceiris 2019-08-16 00:08:44 +09:00
parent 46fbb349ce
commit 1daa8a255f

View file

@ -10,10 +10,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- name: Docker build - name: Docker build and print Hugo version
if: if: github.event.deleted == false
github.event.deleted == false run: |
run: docker build -t peaceiris/actions-hugo . docker build -t peaceiris/actions-hugo . &&
- name: Check Hugo version docker run peaceiris/actions-hugo:latest version ||
if: success() echo -e "\e[33mjob skipped\e[m"
run: docker run peaceiris/actions-hugo:latest version