Added a workflow to keep the help output copyright year current - #6266
Open
nickanderson wants to merge 1 commit into
Open
Added a workflow to keep the help output copyright year current#6266nickanderson wants to merge 1 commit into
nickanderson wants to merge 1 commit into
Conversation
larsewi
previously requested changes
Aug 5, 2026
larsewi
left a comment
Contributor
There was a problem hiding this comment.
Maybe you could use date directly in configure.ac similar to BUILD_YEAR?
AC_DEFINE(BUILD_YEAR, esyscmd([date +%Y | tr -d '\n']), "Software build year")
---snip---
AC_DEFINE(CF_COPYRIGHT, "2023 Northern.tech AS", "Copyright. To be used in help screens")
Member
Author
Yeah, I considered that but I figure that since Herman just updated the string it was desired to have the hard coded date. |
nickanderson
force-pushed
the
copyright-year-automation
branch
2 times, most recently
from
August 5, 2026 20:16
6d81b55 to
7713a20
Compare
Contributor
|
Let's ask @olehermanse when he is back. If we decide to do this in a workflow. Then I suggest to put all the logic into a shell script and let the workflow take care of only running that script, committing and creating a PR. A shell script is better because we can run formatters, linters on it. Or simply run it ourselves when debugging |
Changelog: none Signed-off-by: Nick Anderson <nick@cmdln.org>
nickanderson
force-pushed
the
copyright-year-automation
branch
from
August 6, 2026 21:07
7713a20 to
266518c
Compare
larsewi
approved these changes
Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a scheduled workflow that does the remembering: on January 2nd it
bumps the
CF_COPYRIGHTand opens the pull request.