Skip to content

Commit

Permalink
Added step to update the copyright year during release
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Raineri <[email protected]>
  • Loading branch information
mraineri committed Jun 11, 2024
1 parent 1068df0 commit 8d3fd09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,14 @@ jobs:
.
xit
eof
- name: Update the copyright year
run: |
find . -type f -exec sed -i -E 's/Copyright [0-9\-]+ DMTF/Copyright 2019-'$(date +'%Y')' DMTF/' {} \;
- name: Commit and push the updates
run: |
git config user.name "GitHub Release Workflow"
git config user.email "<>"
git add CHANGELOG.md setup.py
git add *
git commit -s -m "${{github.event.inputs.version}} versioning"
git push origin main
- name: Set up Python
Expand Down

0 comments on commit 8d3fd09

Please sign in to comment.