enhance: test job
This commit is contained in:
parent
46fbb349ce
commit
1daa8a255f
1 changed files with 6 additions and 7 deletions
13
.github/workflows/push.yml
vendored
13
.github/workflows/push.yml
vendored
|
@ -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 a new issue