Timothée Chalamet is donating his salary from a forthcoming Woody Allen movie to charity.

The 22-year-old actor vowed in an Instagram post Monday to give his pay from Allen's film A Rainy Day in New York to Time's Up, an equality and anti-harassment campaign, RAINN, the Rape, Abuse & Incest National Network, and The LGBT Center in New York.

"I have been asked in a few recent interviews about my decision to work on a film with Woody Allen last summer," he wrote. "I'm not able to answer the question directly because of contractual obligations. But what I can say is this: I don't want to profit from my work on the film, and to that end, I am going to donate my entire salary to three charities."

Chalamet said he came to the decision after "learning that a good role isn't the only criteria for accepting a job" and witnessing "the birth of a powerful movement" in the wake of sexual harassment and abuse allegations against powerful Hollywood players.

"I want to be worthy of standing shoulder to shoulder with the brave artists who are fighting for all people to be treated with the respect and dignity they deserve," he said.

Chalamet's co-star Rebecca Hall announced Friday she will donate her salary to Time's Up. She referenced longstanding allegations Allen sexually abused his daughter Dylan Farrow as a child in a post explaining the decision.

"After reading and re-reading Dylan Farrow's statements of a few days ago and going back and reading the older ones — I see, not only how complicated this matter is, but that my actions have made another woman feel silenced and dismissed," the actress said. "I am profoundly sorry."

Allen has previously denied the allegations of abuse. A Rainy Day in New York will open in theaters this year.

By Annie Martin, UPI.com

Copyright © 2018 United Press International, Inc. All Rights Reserved