Github Release Action fails to push to origin

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Internal
    • None
    • None
    • Java Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Given the new repository rule set, which protects pushing directly into branches without a PR, the latest 5.6.2 release failed https://github.com/mongodb/mongo-java-driver/actions/runs/20024599234/job/57418984136  

       git push origin 5.6.x
        git push origin r5.6.2
        shell: /usr/bin/bash -e {0}
        env:
          GH_TOKEN: ***
          RELEASE_VERSION: 5.6.2
          RELEASE_VERSION_WITHOUT_SUFFIX: 5.6.2
          NEXT_VERSION: 5.6.3
          RELEASE_BRANCH: 5.6.x
      remote: error: GH013: Repository rule violations found for refs/heads/5.6.x.        
      remote: Review all repository rules at https://github.com/mongodb/mongo-java-driver/rules?ref=refs%2Fheads%2F5.6.x        
      remote: 
      remote: - Changes must be made through a pull request.        
      remote: 
      remote: - Required status check "evergreen" is expected.        
      remote: 
      To https://github.com/mongodb/mongo-java-driver
       ! [remote rejected]       5.6.x -> 5.6.x (push declined due to repository rule violations)
      error: failed to push some refs to 'https://github.com/mongodb/mongo-java-driver'
      Error: Process completed with exit code 1.
      

      jeff.yemin@mongodb.com disabled the ruleset momentarily so we can re-run the release action.

      In the future, we need to think about how we can relax the ruleset for [0-9].[0-9].x branches to allow the GHA to complete.

            Assignee:
            Maxim Katcharov
            Reporter:
            Nabil Hachicha
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: