Skip to content

Commit edcb325

Browse files
committed
Add nightly jobs and trigger on tag
1 parent 9b141fc commit edcb325

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/generate-ci/gen_ci.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@ data Config = MkConfig Arch Opsys [GHC]
279279
instance ToJSON CI where
280280
toJSON (CI cs) = object
281281
[ "name" .= str "Build and release"
282-
, "on" .= [ str "push" ]
282+
, "on" .= object [ "push" .= [object ["tags" .= [str "*"]]]
283+
, "schedule" .= [object ["cron" .= str "0 2 * * 1"]]
284+
]
283285
, "env" .= object
284286
[ "CABAL_CACHE_DISABLE" .= str "${{ vars.CABAL_CACHE_DISABLE }}"
285287
, "CABAL_CACHE_NONFATAL" .= str "${{ vars.CABAL_CACHE_NONFATAL }}"

.github/workflows/release.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3589,4 +3589,8 @@ jobs:
35893589
shell: pwsh
35903590
name: Build and release
35913591
'on':
3592-
- push
3592+
push:
3593+
- tags:
3594+
- '*'
3595+
schedule:
3596+
- cron: 0 2 * * 1

0 commit comments

Comments
 (0)