refactor: update deployment conditions in GitHub Actions workflow

This commit is contained in:
Marco Pedone 2025-11-14 18:50:03 +01:00
parent fc104d4044
commit f8c00f01ab

View file

@ -2,12 +2,13 @@ name: Deploy on package push
on: on:
registry_package: registry_package:
types: ["published", "updated"] types: [published]
workflow_dispatch:
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.registry_package.name == 'marcopedone-web' if: contains(github.event.registry_package.name, 'marcopedone-web')
steps: steps:
- name: Deploy command - name: Deploy command
run: | run: |
@ -19,7 +20,7 @@ jobs:
-d '{"composeId": "1Q1nPft6iaEDENfpYxq99"}' -d '{"composeId": "1Q1nPft6iaEDENfpYxq99"}'
deploy-infoalloggi: deploy-infoalloggi:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.registry_package.name == 'infoalloggi-web' if: contains(github.event.registry_package.name, 'infoalloggi-web')
steps: steps:
- name: Deploy command - name: Deploy command
run: | run: |