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 # Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch # events but only for the master branch
on: on:
workflow_dispatch # This event triggers the workflow manually push:
#push: branches: [ main ]
# branches: [ dev ] pull_request:
#pull_request: branches: [ main ]
# branches: [ dev ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: 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 # Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch # events but only for the master branch
on: on:
workflow_dispatch # This event triggers the workflow manually push:
#push: branches: [ main ]
# branches: [ dev ] pull_request:
#pull_request: branches: [ main ]
# branches: [ dev ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs: