workflow only if commit on main

This commit is contained in:
Roger Sacchelli 2024-04-12 01:36:59 -03:00
parent e4b81a8dc0
commit 5015633ef4
2 changed files with 8 additions and 10 deletions

View File

@ -3,11 +3,10 @@ name: Oktopus Frontend
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
workflow_dispatch # This event triggers the workflow manually
#push:
# branches: [ dev ]
#pull_request:
# branches: [ dev ]
push:
branches: [ main ]
pull_request:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:

View File

@ -3,11 +3,10 @@ name: Oktopus MQTT Broker
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
workflow_dispatch # This event triggers the workflow manually
#push:
# branches: [ dev ]
#pull_request:
# branches: [ dev ]
push:
branches: [ main ]
pull_request:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: