Commits


Raúl Cumplido authored and GitHub committed 6cfd143d344
GH-14977: [Dev][CI] Add notify-token-expiration to archery (#14978) This can be added to run weekly on crossbow similar to the email report generation tasks. In the case of a non expired token: ``` $ CROSSBOW_GITHUB_TOKEN=${TOKEN} archery crossbow notify-token-expiration --days 30 Notification not sent. Token will expire in 39 days. ``` In the case of an expired token: ``` $ CROSSBOW_GITHUB_TOKEN=${TOKEN} archery crossbow notify-token-expiration --days 40 From: None <None> To: None Subject: [CI] Arrow Crossbow Token Expiration in 2023-01-23 The Arrow Crossbow Token will expire in 39 days. Please generate a new Token. Send it to Apache INFRA to update the CROSSBOW_GITHUB_TOKEN. Update it on the crossbow repository and in the Azure pipelines. ``` In the case of a non-existing token: ``` $ CROSSBOW_GITHUB_TOKEN=wrong_token archery crossbow notify-token-expiration --days 40 From: None <None> To: None Subject: [CI] Arrow Crossbow Token Expiration in ALREADY_EXPIRED The Arrow Crossbow Token will expire in 0 days. Please generate a new Token. Send it to Apache INFRA to update the CROSSBOW_GITHUB_TOKEN. Update it on the crossbow repository and in the Azure pipelines. * Closes: #14977 Authored-by: Raúl Cumplido <raulcumplido@gmail.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>