From 4488982f07f7e7d11c22bc8f18f566397a33aa2a Mon Sep 17 00:00:00 2001 From: Gaston Thea Date: Tue, 2 Jan 2024 14:20:09 -0300 Subject: [PATCH 1/4] Update LICENSE year --- splitio/LICENSE | 2 +- splitio_android/LICENSE | 2 +- splitio_ios/LICENSE | 2 +- splitio_platform_interface/LICENSE | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/splitio/LICENSE b/splitio/LICENSE index 54326b0..68e2d99 100644 --- a/splitio/LICENSE +++ b/splitio/LICENSE @@ -176,7 +176,7 @@ END OF TERMS AND CONDITIONS - Copyright © 2023 Split Software, Inc. + Copyright © 2024 Split Software, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/splitio_android/LICENSE b/splitio_android/LICENSE index 54326b0..68e2d99 100644 --- a/splitio_android/LICENSE +++ b/splitio_android/LICENSE @@ -176,7 +176,7 @@ END OF TERMS AND CONDITIONS - Copyright © 2023 Split Software, Inc. + Copyright © 2024 Split Software, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/splitio_ios/LICENSE b/splitio_ios/LICENSE index 54326b0..68e2d99 100644 --- a/splitio_ios/LICENSE +++ b/splitio_ios/LICENSE @@ -176,7 +176,7 @@ END OF TERMS AND CONDITIONS - Copyright © 2023 Split Software, Inc. + Copyright © 2024 Split Software, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/splitio_platform_interface/LICENSE b/splitio_platform_interface/LICENSE index 54326b0..68e2d99 100644 --- a/splitio_platform_interface/LICENSE +++ b/splitio_platform_interface/LICENSE @@ -176,7 +176,7 @@ END OF TERMS AND CONDITIONS - Copyright © 2023 Split Software, Inc. + Copyright © 2024 Split Software, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. From 7e16823921b3ca63f77ad75c578f7432b5e050d0 Mon Sep 17 00:00:00 2001 From: Gaston Thea Date: Tue, 2 Jan 2024 14:28:43 -0300 Subject: [PATCH 2/4] License year workflow --- .github/workflows/update-license-year.yml | 45 +++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/update-license-year.yml diff --git a/.github/workflows/update-license-year.yml b/.github/workflows/update-license-year.yml new file mode 100644 index 0000000..7bde9d2 --- /dev/null +++ b/.github/workflows/update-license-year.yml @@ -0,0 +1,45 @@ +name: Update License Year + +on: + schedule: + - cron: "0 3 1 1 *" # 03:00 AM on January 1 + +permissions: + contents: write + pull-requests: write + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set Current year + run: "echo CURRENT=$(date +%Y) >> $GITHUB_ENV" + + - name: Set Previous Year + run: "echo PREVIOUS=$(($CURRENT-1)) >> $GITHUB_ENV" + + - name: Update LICENSE + uses: jacobtomlinson/gha-find-replace@v2 + with: + find: ${{ env.PREVIOUS }} + replace: ${{ env.CURRENT }} + include: "**/LICENSE" + regex: false + + - name: Commit files + run: | + git config user.name 'github-actions[bot]' + git config user.email 'github-actions[bot]@users.noreply.github.com' + git commit -m "Updated License Year" -a + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + title: Update License Year + branch: update-license From 40cb8e3d2e67c1e9865ee75a8d7811122e3f3457 Mon Sep 17 00:00:00 2001 From: Gaston Thea Date: Tue, 2 Jan 2024 14:57:51 -0300 Subject: [PATCH 3/4] Update versions --- .github/workflows/update-license-year.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-license-year.yml b/.github/workflows/update-license-year.yml index 7bde9d2..96eb606 100644 --- a/.github/workflows/update-license-year.yml +++ b/.github/workflows/update-license-year.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.1 with: fetch-depth: 0 @@ -24,7 +24,7 @@ jobs: run: "echo PREVIOUS=$(($CURRENT-1)) >> $GITHUB_ENV" - name: Update LICENSE - uses: jacobtomlinson/gha-find-replace@v2 + uses: jacobtomlinson/gha-find-replace@v3 with: find: ${{ env.PREVIOUS }} replace: ${{ env.CURRENT }} @@ -38,7 +38,7 @@ jobs: git commit -m "Updated License Year" -a - name: Create Pull Request - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@v5.0.2 with: token: ${{ secrets.GITHUB_TOKEN }} title: Update License Year From 5c6e58d730830ca5aa16b8ec92cd0f0c929e7c77 Mon Sep 17 00:00:00 2001 From: Gaston Thea Date: Tue, 2 Jan 2024 15:00:24 -0300 Subject: [PATCH 4/4] Update versions --- .github/workflows/update-license-year.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-license-year.yml b/.github/workflows/update-license-year.yml index 96eb606..ef86df4 100644 --- a/.github/workflows/update-license-year.yml +++ b/.github/workflows/update-license-year.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -38,7 +38,7 @@ jobs: git commit -m "Updated License Year" -a - name: Create Pull Request - uses: peter-evans/create-pull-request@v5.0.2 + uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.GITHUB_TOKEN }} title: Update License Year