Difference between revisions of "GitHub Actions: on:"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
 
  on: [push,fork]
 
  on: [push,fork]
 
  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:
 
  on:

Revision as of 11:37, 26 May 2023

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

on: push
on: [push,fork]
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:
  push:
    branches:
      - main
      - develop
on:
  schedule:
    # * is a special character in YAML so you have to quote this string
    - cron:  '30 5,17 * * *'

Related

See also

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