I'll take a shot at this until someone that knows better comes along. First step of course is empty gun, then clean it well. We all know this, I just like saying it.

Ive had a similar experience with cocking/trigger pull (but different firearm) when the firearms trigger overtravel screw was out of adjustment. In fact there is a flyer out from ruger providing notice of this problem and describing as one possible scenario the results your are having. I tried to attach but not sure it worked so I pasted the Notice below.
Notice to Owners of Ruger
M-77 Bolt Action Rifles
The trigger overtravel adjustment set
screw (shown on right) in a few of these
rifles may not be securely tightened and
may move too readily. This change in
original adjustment can, in extre m e
cases, either cause the rifle to fire unexpectedly
(with the safety “off) or cause
the rifle to not fire at all. This may occur
suddenly, without warning.
Current production rifles have this
set screw permanently secured. These
rifles have a “T” inscribed on the underside
of the bolt handle. This condition cannot occur in any of our other
firearms, such as the 77/22, 10/22, No. 1, No. 3, or the .44 Carbine, as their
trigger mechanisms differ.
For your safety, we ask that all owners of M-77 rifles (except those with a
“T” underneath the bolt handle) contact us, using the coupon below.
You will receive a new locking screw that will replace your present overtravel
adjustment set screw and detailed instructions for quick, easy installation.
There is no charge for this service and replacing the screw will have
no adverse effect on trigger pull.
Do not use your M-77 rifle until you have received and installed the
replacement screw.
SINGLE COPIES OF INSTRUCTION MANUALS FOR ALLMODELS OF RUGER FIREARMS ARE
AVAILABLE ON REQUEST - PLEASE SPECIFYMODELFOR WHICH YOU REQUIRE A MANUAL.
STURM, RUGER & Company, Inc.
140 Lacey Place
Southport, Connecticut 06490 U.S.A.
ALL RUGER FIREARMS ARE DESIGNED AND MANUFACTURED IN RUGER FACTORIES IN THE UNITED STATES OF AMERICA
Please affix to a postcard and mail to:
Sturm, Ruger & Company, Inc., Dept. M-77
140 Lacey Place, Southport, Connecticut 06490
NAME
(Please Print)
STREET OR P.O. BOX
CITY STATE ZIP
Number of M-77’s owned: List serial numbers here:
Ruger M-77 Rifle
Hope this helps.
Silvertp