chromaui/chromatic-cli

Support cron in our GitHub action

Closed this issue ยท 2 comments

For example:

- name: Publish to Chromatic
  uses: chromaui/action@v1
  # Chromatic GitHub Action options
  with:
  token: ${{ secrets.GITHUB_TOKEN }}
  # ๐Ÿ‘‡ Chromatic projectToken, refer to the manage page to obtain it.
  projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
  exitOnceUploaded: true

The workflow triggers:

on:
  push:
  branches-ignore:
  - 'artifactory-release'
  schedule:
  # Attempt build and publish Monday, Wednesday, and Friday at 8:00 CST
  - cron: '0 14 * * 1,3,5'

And they are getting this error:

Error: schedule event is not supported in this action

I'm not sure why we don't support this, but if it is easy, maybe we can.

Closing in favour of monorepo ticket.

Hi, is this solved? I also want to schedule the action but I couldn't figure out how to do that, I keep getting the error:

schedule event is not supported in this action