Difference between revisions of "GitHub Actions: on:"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
  [[on: push]]
 
  [[on: push]]
 
  on: [push,fork]
 
  on: [push,fork]
 +
on: [[schedule]]
 
  on: [[workflow_dispatch]] # for [[manual trigger]] <ref>https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch</ref>
 
  on: [[workflow_dispatch]] # for [[manual trigger]] <ref>https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch</ref>
 
  on: [[workflow_call]]    # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_call
 
  on: [[workflow_call]]    # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_call
  
 +
on: ['deployment'] ([[GitHub Actions helm deployments]])
  
 
  [[on:]]
 
  [[on:]]
Line 14: Line 16:
  
 
  on:
 
  on:
   schedule:
+
   [[schedule:]]
 
     # * is a special character in YAML so you have to quote this string
 
     # * is a special character in YAML so you have to quote this string
 
     - cron:  '30 5,17 * * *'
 
     - cron:  '30 5,17 * * *'

Latest revision as of 06:27, 6 June 2024

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

on: push
on: [push,fork]
on: schedule
on: workflow_dispatch # for manual trigger [1]
on: workflow_call     # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_call
on: ['deployment'] (GitHub Actions helm deployments)
on:
  push:
    branches:
      - main
      - develop
on:
  schedule:
    # * is a special character in YAML so you have to quote this string
    - cron:  '30 5,17 * * *'

Related[edit]

See also[edit]

  • https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
  • Advertising: