Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

Submodule sync silently failing due to review requirement #167

@ianonavy

Description

@ianonavy

As of July 2022, calcom/docker has a branch protection rule on main that requires at least one review before merging. This revealed two bugs:

  1. the submodule sync workflow stopped working
  2. the submodule sync workflow reports a successful job even though it failed

The last step in the Actions workflow for submodule update ends with || echo. Because echo always exit 0, GitHub Actions erroneously believes the job succeeded regardless of whether git push failed due to lack of new commits or failure to push. See example. This has been failing since 1.7.6 cal.com@6b0ac9.

Instead of committing and pushing on one line, I would recommend separating the check for new commits to its own line. That way, you can do an early exit(0) if there are no new commits, and correctly fail the job if git push errors out.

To fix the issue with the branch protection rule, there are a few options. In no particular order:

  1. Remove the PR requirement.
  2. Create a GitHub app as an exception to the branch protection rule (seems complicated, but as of today actions-user cannot be added to the exception list).
  3. Change the sync script to submit a PR instead.
  4. Instead of using a submodule, just do a git clone in the docker build and push workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions