refactor: update deployment conditions in GitHub Actions workflow
This commit is contained in:
parent
fc104d4044
commit
f8c00f01ab
1 changed files with 4 additions and 3 deletions
7
.github/workflows/deploy.yml
vendored
7
.github/workflows/deploy.yml
vendored
|
|
@ -2,12 +2,13 @@ name: Deploy on package push
|
|||
|
||||
on:
|
||||
registry_package:
|
||||
types: ["published", "updated"]
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.registry_package.name == 'marcopedone-web'
|
||||
if: contains(github.event.registry_package.name, 'marcopedone-web')
|
||||
steps:
|
||||
- name: Deploy command
|
||||
run: |
|
||||
|
|
@ -19,7 +20,7 @@ jobs:
|
|||
-d '{"composeId": "1Q1nPft6iaEDENfpYxq99"}'
|
||||
deploy-infoalloggi:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.registry_package.name == 'infoalloggi-web'
|
||||
if: contains(github.event.registry_package.name, 'infoalloggi-web')
|
||||
steps:
|
||||
- name: Deploy command
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue