Difference between revisions of "GitHub Actions: on:"
Jump to navigation
Jump to search
↑ https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
(10 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
[[on: push]] | [[on: push]] | ||
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: [[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_call]] # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_call | ||
− | on: | + | on: ['deployment'] ([[GitHub Actions helm deployments]]) |
+ | |||
+ | [[on:]] | ||
[[push:]] | [[push:]] | ||
[[branches:]] | [[branches:]] | ||
− | - main | + | - [[main]] |
− | - develop | + | - [[develop]] |
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 * * *' | ||
Line 19: | Line 23: | ||
* [[GitHub Actions: events that trigger workflows]] | * [[GitHub Actions: events that trigger workflows]] | ||
* [[GitHub Actions]]: <code>[[runs-on:]]</code> | * [[GitHub Actions]]: <code>[[runs-on:]]</code> | ||
+ | * [[GitHub Actions: inputs:]] | ||
* [[GitHub Actions: schedule:]] | * [[GitHub Actions: schedule:]] | ||
* [[Azure Pipelines]]: <code>[[Azure Pipelines: trigger:|trigger]]</code> | * [[Azure Pipelines]]: <code>[[Azure Pipelines: trigger:|trigger]]</code> | ||
+ | * [[when: (GitLab)]] | ||
+ | * [[Workflow does not exist or does not have a]] [[workflow_dispatch]] trigger in this branch. | ||
== See also == | == See also == |
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]
- GitHub Actions: events that trigger workflows
- GitHub Actions:
runs-on:
- GitHub Actions: inputs:
- GitHub Actions: schedule:
- Azure Pipelines:
trigger
- when: (GitLab)
- Workflow does not exist or does not have a workflow_dispatch trigger in this branch.
See also[edit]
- GitHub Actions,
act, .github/workflows/
,~/actions-runner/
,svc.sh
,deploy:, run:, runs-on:
,uses:
,steps:
,jobs:
,on:, env:, uses:, script:, continue-on-error:, template:, aws-actions, inputs:
,GITHUB_ENV, needs:, github.
, GitHub runner, my-docker-publish.yml, GitHub Actions variables, GitHub Actions contexts, GitHub Actions Importer, If:, SLSA, Actions Runner Controller (ARC),$GITHUB OUTPUT
,notify:
, Marketplace,GITHUB_TOKEN
- GitHub, GitHub Actions, GitHub Actions Runner, Events, CodeQL, GitHub Desktop, GitHub organization, base permissions, GitHub Copilot,
.gitignore
, GitHub Codespaces, GitHub Marketplace, GitHub Apps, GitHub Enterprise Server, GitHub CLI (gh
), Dependabot, GitHub security,.github/
, GitHub code scanning, GitHub Pages, GitHub Packages, GitHub Advanced Security, GitHub Mobile, GitHub Importer, GitHub versions, SSH keys
Advertising: