typelevel / sbt-typelevel

Let sbt work for you.
https://typelevel.org/sbt-typelevel/
Apache License 2.0
170 stars 47 forks source link

github-actions: support schedule cron #299

Open pjfanning opened 2 years ago

pjfanning commented 2 years ago

Github Actions yml supports setting a schedule param. It would be nice to have sbt-typelevel-github-actions support an sbt param that allows users to set this.

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
  schedule:
    - cron: '33 9 * * 4'

Example: https://github.com/apache/commons-crypto/blob/master/.github/workflows/codeql-analysis.yml

armanbilge commented 2 years ago

Thanks for the issue! An additional sbt setting to support this sounds good to me 👍

Long term I would like to better formalize support for GHA workflows with a more complete model based on the specification. Currently there are too many gaps like this.