Sha256: 5194b1a7fcdba0fe803284aa44a19809876c436a8c16aeeb4cb9cbb1b46df4d1

Contents?: true

Size: 1.11 KB

Versions: 36

Compression:

Stored size: 1.11 KB

Contents

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

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
splitclient-rb-8.4.0-java .github/workflows/update-license-year.yml
splitclient-rb-8.4.0 .github/workflows/update-license-year.yml
splitclient-rb-8.4.0.pre.rc1-java .github/workflows/update-license-year.yml
splitclient-rb-8.4.0.pre.rc1 .github/workflows/update-license-year.yml
splitclient-rb-8.4.0.rc.1-java .github/workflows/update-license-year.yml
splitclient-rb-8.4.0.rc.1 .github/workflows/update-license-year.yml
splitclient-rb-8.3.2.pre.rc2-java .github/workflows/update-license-year.yml
splitclient-rb-8.3.2.pre.rc2 .github/workflows/update-license-year.yml
splitclient-rb-8.3.2.pre.rc1-java .github/workflows/update-license-year.yml
splitclient-rb-8.3.2.pre.rc1 .github/workflows/update-license-year.yml
splitclient-rb-8.3.1-java .github/workflows/update-license-year.yml
splitclient-rb-8.3.1 .github/workflows/update-license-year.yml
splitclient-rb-8.3.1.pre.rc1-java .github/workflows/update-license-year.yml
splitclient-rb-8.3.1.pre.rc1 .github/workflows/update-license-year.yml
splitclient-rb-8.3.0-java .github/workflows/update-license-year.yml
splitclient-rb-8.3.0 .github/workflows/update-license-year.yml
splitclient-rb-8.3.0.pre.rc3-java .github/workflows/update-license-year.yml
splitclient-rb-8.3.0.pre.rc3 .github/workflows/update-license-year.yml
splitclient-rb-8.3.0.pre.rc2-java .github/workflows/update-license-year.yml
splitclient-rb-8.3.0.pre.rc2 .github/workflows/update-license-year.yml