enhance: test job
This commit is contained in:
parent
46fbb349ce
commit
1daa8a255f
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue