From a1c38b0ff51a625c6ddb5c308b288376803756d3 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Mon, 23 Jan 2023 16:37:44 +0200 Subject: [PATCH] feat(workflow): create update license yearly action (#49115) --- .github/workflows/update-license.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/update-license.yaml diff --git a/.github/workflows/update-license.yaml b/.github/workflows/update-license.yaml new file mode 100644 index 00000000000..0c59424e025 --- /dev/null +++ b/.github/workflows/update-license.yaml @@ -0,0 +1,24 @@ +name: Update copyright year(s) in license file + +on: + workflow_dispatch: + schedule: + - cron: '0 3 1 1 *' + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 + with: + fetch-depth: 0 + - uses: FantasticFiasco/action-update-license-year@26ffac173f956c25f7467aa8e6f750eed24a1b7a # v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + path: | + README.md + LICENSE + commitTitle: 'docs: update copyright years' + prTitle: 'docs: update copyright years' + prBody: It's that time of the year, let's update the license + labels: 'status: waiting review'