diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ccabfd7d..d2b46168 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -204,6 +204,7 @@ jobs: packages: write contents: read attestations: write + artifact-metadata: write # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 881f7847..bd445af9 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -18,7 +18,7 @@ jobs: packages: write contents: read attestations: write - + artifact-metadata: write # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it diff --git a/.github/workflows/update_copyright.yaml b/.github/workflows/update_copyright.yaml new file mode 100644 index 00000000..558b4246 --- /dev/null +++ b/.github/workflows/update_copyright.yaml @@ -0,0 +1,46 @@ +# This is a basic workflow to help you get started with Actions + +name: "Change copyright" + +# Controls when the action will run. Triggers the workflow on push +# events but only for the master branch +on: + workflow_dispatch: + inputs: + CurrentYear: + description: 'The current year' + required: true + type: string + NewYear: + description: 'The new year' + required: true + type: string + +# This workflow contains one job called "build_documentation" +jobs: + update_version: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v6 + with: + fetch-depth: '1' + + - run: find ./src -type f -exec sed -i 's/-${{ inputs.CurrentYear }}/-${{ inputs.NewYear }}/g' {} + + - run: find ./tests -type f -exec sed -i 's/-${{ inputs.CurrentYear }}/-${{ inputs.NewYear }}/g' {} + + + - name: Request a PR to commit changes + uses: peter-evans/create-pull-request@v8 + with: + branch-suffix: short-commit-hash + add-paths: ./*.* + commit-message: Update copyright from ${{ inputs.CurrentYear }} to ${{ inputs.NewYear }} + title: Update copyright from ${{ inputs.CurrentYear }} to ${{ inputs.NewYear }} + body: | + Automated changes by GitHub action fix #150 + reviewers: masesdevelopers + assignees: masesdevelopers + labels: enhancement, Docker, java, NetPDF, NetPDF CLI, NetPDF PowerShell, NetPDF Template, .NET \ No newline at end of file diff --git a/src/net/Common/Common.props b/src/net/Common/Common.props index 0c81f72d..a1196c52 100644 --- a/src/net/Common/Common.props +++ b/src/net/Common/Common.props @@ -1,6 +1,6 @@ - Copyright 2024-2025 MASES s.r.l. + Copyright (c) 2024-2026 MASES s.r.l. MASES s.r.l. MASES s.r.l. MASES s.r.l. diff --git a/tests/net/Common/Initializer.cs b/tests/net/Common/Initializer.cs index f5ef6b12..a25cd1a7 100644 --- a/tests/net/Common/Initializer.cs +++ b/tests/net/Common/Initializer.cs @@ -1,5 +1,5 @@ /* -* Copyright 2025 MASES s.r.l. +* Copyright (c) 2024-2026 MASES s.r.l. * * 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/tests/net/NetPDFTest/Program.cs b/tests/net/NetPDFTest/Program.cs index 85564499..b52ed3a2 100644 --- a/tests/net/NetPDFTest/Program.cs +++ b/tests/net/NetPDFTest/Program.cs @@ -1,5 +1,5 @@ /* -* Copyright 2025 MASES s.r.l. +* Copyright (c) 2024-2026 MASES s.r.l. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.