The Wearing of the Grin is a 1951 Warner Bros. Looney Tunes cartoon directed by Chuck Jones and written by Michael Maltese.
Porky dismisses the remark, tells the caretaker to "cut out this nonsense and take my bags to a room", and slams the front door, causing a mace above to fall.
There the leprechauns charge and convict their archenemy of trying to steal the pot of gold (despite having no substantial evidence against him); they sentence Porky to the wearing of the Green Shoes.
Porky had been Warner Bros. animation's first major star until he had been supplanted first by Daffy Duck (a phenomenon that was foreshadowed in film form in Friz Freleng’s You Ought to Be in Pictures), and later by Bugs Bunny.
All of Porky's subsequent appearances in the classic era would be with other characters such as Daffy or the non-speaking, house cat version of Sylvester.
The Wearing of the Grin is available on the Looney Tunes Golden Collection: Volume 1 DVD box-set, supplemented with an audio commentary by animation historian Michael Barrier.