Skip to content

Commit

Permalink
CI: add schedule trigger to run once a day
Browse files Browse the repository at this point in the history
This way it will not catch us by surprise when suddenly
CI fails when the reason is not really related to the
commit being pushed, but by some change done on the GitHub
side.
  • Loading branch information
siwatanejo committed May 8, 2024
1 parent 6c5b388 commit 5ed9f0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/CI.yml
@@ -1,6 +1,13 @@
name: CI

on: [push, pull_request, workflow_dispatch]
on:
push:
pull_request:
workflow_dispatch:

# to execute once a day (more info see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule )
schedule:
- cron: "0 0 * * *"

env:
SNAPCRAFT_STORE_CREDENTIALS: ${{secrets.SNAPCRAFT_LOGIN}}
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
@@ -1,6 +1,6 @@
name: dotnet-fsharp-helloworld # you probably want to 'snapcraft register <name>'
base: core22 # the base snap is the execution environment for this snap
version: '0.1.2' # just for humans, typically '1.2+git' or '1.3.2'
version: '0.1.3' # just for humans, typically '1.2+git' or '1.3.2'
summary: HelloWorld F# app with snap # 79 char long summary
description: |
Parse CoinDesk API to show current BTC price.
Expand Down

0 comments on commit 5ed9f0e

Please sign in to comment.