Adding date variable to commit message #26915
-
Hello! I’m trying to have yesterday’s date dynamically inserted in commit messages when my action runs. I’ve gotten to this so far:
The Get yesterday’s date step runs properly and outputs the date but the commit message ends up being 'Added data for '. How does one integrate/concatenate the output with the rest of the commit message string? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I wonder if the problem might be the apostrophe s in the step name? Maybe that’s not being parsed well since it isn’t quoted? Haven’t tested, but plausible. Try echoing the value before the commit? (Just as a troubleshooting idea). |
Beta Was this translation helpful? Give feedback.
-
Hi @fredericharnois, Glad to see you in Github Community Forum! This is due to you lost “::” for
Thanks |
Beta Was this translation helpful? Give feedback.
-
Nice catch, I totally overlooked that. 🤦♂️ |
Beta Was this translation helpful? Give feedback.
-
Thank you so much to you both @weide-zhou @kingthorin! It really was just that. |
Beta Was this translation helpful? Give feedback.
Hi @fredericharnois,
Glad to see you in Github Community Forum!
This is due to you lost “::” for
set-output
command, fixed as below:Thanks