Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/update_copyright.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/net/Common/Common.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Copyright>Copyright 2024-2025 MASES s.r.l.</Copyright>
<Copyright>Copyright (c) 2024-2026 MASES s.r.l.</Copyright>
<Owners>MASES s.r.l.</Owners>
<Authors>MASES s.r.l.</Authors>
<Company>MASES s.r.l.</Company>
Expand Down
2 changes: 1 addition & 1 deletion tests/net/Common/Initializer.cs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/net/NetPDFTest/Program.cs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Loading