These Jews in John 6:28 were willing to do something to get salvation, but they were not willing to commit themselves to Jesus and accept His gift.
This is one of the major differences between Christianity and the religions of the world. Religion is willing to make sacrifices to obtain right standing with God, but Christianity recognizes our complete inability to ever do enough to save ourselves and it calls for total faith and reliance on what Jesus did for us.
No one deserves salvation. It cannot be earned by what the Bible calls "dead works" (Hebrews 6:1; 9:14). Dead works include all religious activities, good deeds, or charity that one may do as a means of being justified before God.
Faith in God and what He has done through Christ Jesus is the only way of receiving His free gift of salvation. He only asks us to believe.