mirror of
https://github.com/ivabus/www
synced 2024-11-22 23:05:05 +03:00
test job validation
This commit is contained in:
parent
b5626af876
commit
fb68f237ae
1 changed files with 5 additions and 2 deletions
7
.github/workflows/staging.yml
vendored
7
.github/workflows/staging.yml
vendored
|
@ -11,6 +11,9 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
validation:
|
validation:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
ouputs:
|
||||||
|
website: ${{steps.website.outputs.src}}
|
||||||
|
lambdas: ${{steps.lambdas.outputs.lambdas}}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: dorny/paths-filter@v2
|
- uses: dorny/paths-filter@v2
|
||||||
|
@ -28,7 +31,7 @@ jobs:
|
||||||
|
|
||||||
deploy_sls:
|
deploy_sls:
|
||||||
needs: validation
|
needs: validation
|
||||||
if: steps.lambdas.outputs.lambdas == 'true'
|
if: needs.validation.outputs.lambdas == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -51,7 +54,7 @@ jobs:
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: validation
|
needs: validation
|
||||||
if: steps.website.outputs.src == 'true'
|
if: needs.validation.outputs.website == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: inject slug/short variables
|
- name: inject slug/short variables
|
||||||
|
|
Loading…
Reference in a new issue