-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: prompt user to update deployment docs, providing the necessary i…
…nfo to do so
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# Get version info for inclusion on https://confluence.slac.stanford.edu/x/0IsFGg | ||
# Includes a human-readable shorthand, a url to the commit, and the current time and date | ||
THIS_SCRIPT="$(realpath "${0}")" | ||
THIS_DIR="$(dirname "${THIS_SCRIPT}")" | ||
|
||
VERSION="$(git -C "${THIS_DIR}" describe --tags)" | ||
URL="https://github.com/pcdshub/twincat-bsd-ansible/tree/${VERSION}" | ||
|
||
echo "If you made changes, please update the deployment docs (https://confluence.slac.stanford.edu/x/0IsFGg)" | ||
echo "TcBSD Ansible Version: ${VERSION}" | ||
echo "Link commit URL: ${URL}" | ||
echo "PLC Updated on: $(date +'%b %d, %Y')" |
This file contains 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