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
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue