Difference between revisions of "GitHub Actions: schedule:"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
[[docker-publish.yml]] | [[docker-publish.yml]] | ||
+ | |||
+ | [[on]]: | ||
+ | schedule: | ||
+ | - cron: $cron-daily | ||
+ | [[push:]] | ||
+ | branches: [ $default-branch ] | ||
+ | # Publish semver tags as releases. | ||
+ | tags: [ 'v*.*.*' ] | ||
+ | [[pull_request:]] | ||
+ | branches: [ $default-branch ] | ||
+ | |||
+ | |||
+ | on: | ||
+ | [[workflow_dispatch:]] | ||
+ | schedule: | ||
+ | - [[cron:]] '0 */6 * * *' # “At minute 0 past every 6th hour.” | ||
== Related == | == Related == | ||
Line 7: | Line 23: | ||
== See also == | == See also == | ||
+ | * {{on}} | ||
* {{GitHub Actions}} | * {{GitHub Actions}} |
Latest revision as of 06:28, 6 June 2024
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
docker-publish.yml
on: schedule: - cron: $cron-daily push: branches: [ $default-branch ] # Publish semver tags as releases. tags: [ 'v*.*.*' ] pull_request: branches: [ $default-branch ]
on: workflow_dispatch: schedule: - cron: '0 */6 * * *' # “At minute 0 past every 6th hour.”
Related[edit]
See also[edit]
- on:
- 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
Advertising: