Note, you can use Set Property, but since the Culling Mask is an int, it's not very user friendly!
Here's a custom action with a nicer UI. The standard Unity LayerMask editor is not exposed to editor scripts, so this UI works a little differently. The layer mask is an array, so set the number of layers first, then fill in the layers.