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
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"