Add conditions to use only the schedule event
This commit is contained in:
parent
36e1bae353
commit
3ba6dd767d
4
.github/workflows/demo.yml
vendored
4
.github/workflows/demo.yml
vendored
@ -17,6 +17,7 @@ env:
|
||||
jobs:
|
||||
build-and-push-image-lecoffre:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event_name == 'schedule' && github.ref == 'refs/heads/legacy_dev' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup SSH
|
||||
@ -42,7 +43,8 @@ jobs:
|
||||
deploy-to-scaleway-lecoffre:
|
||||
needs: build-and-push-image-lecoffre
|
||||
runs-on: ubuntu-latest
|
||||
environment: staging
|
||||
environment: demo
|
||||
if: ${{ github.event_name == 'schedule' && github.ref == 'refs/heads/legacy_dev' }}
|
||||
steps:
|
||||
- name: Install CLI
|
||||
uses: scaleway/action-scw@v0
|
||||
|
Loading…
x
Reference in New Issue
Block a user