Skip to content

Support schedule events #3

Open

Description

@ianlewis

https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule

I don't recall the reason why they were excluded. Was there some info missing from those events that we cared about?

/cc @MarkLodato @laurentsimon @kpk47

Activity

  1. added
    enhancement
    on Jun 2, 2023
  2. MarkLodato commented on Jun 2, 2023

    @MarkLodato
    Member

    I suspect the reason was to avoid any ambiguity about which specific version was built. While the GITHUB_SHA and GITHUB_REF are set to the default branch, it seems conceivable that builds check out arbitrary branches during the workflow. Then again, it's possible to do that for the other events too.

    I have no objection to adding it. It seems that the semantics are reasonably clear.

  3. ianlewis commented on Jun 2, 2023

    @ianlewis
    MemberAuthor

    Right. I think schedule events are triggered on the default branch at HEAD so we would be presuming it was built from there but I think you're right it's not unlikely that someone would build from an arbitrary commit. However, from a technical perspective this is the same as how all other events work.

    I just ran into this as part of tests, so there isn't an end user need for this yet. I'll let it stew a bit before sending a PR to add it.

  4. roshcompanylabs commented on Oct 15, 2026

    @roshcompanylabs

    Late, but this question got an answer from data rather than from argument.

    I measured, across 298 npm packages twice a week apart, whether the commit an attestation names actually contains the published version. It often does not — and the split is not by event type. 15 of 23 cases are on workflow_dispatch, which is supported. The cause is projects creating the version-bump commit inside the publishing run, which any trigger permits.

    So @MarkLodato's hedge — "it's possible to do that for the other events too" — and @ianlewis's "from a technical perspective this is the same as how all other events work" both hold up. Whatever the case for adding schedule, the ambiguity argument does not distinguish it from the four already supported. Written up in actions/buildtypes#2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions