You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This action grabs the github repository (or any subdfolder of your choice) scans it for scripts and will create or update those scripts in jamf.
2
+
This action grabs the github repository (or any subfolder of your choice) scans it for scripts and will create or update those scripts in jamf.
3
3
4
4
It starts by comparing filename of the github script (without the extension) against the name of the script in jamf:
5
-
* If it doesn't exist, it will create it
6
-
*if it exists, it will compare the hash of the body of both scripts and update it in jamf if they differ. Github is always treated as the source.
7
-
* If enabled, it will add a prefix with the `branch name_`to a script.
5
+
* If it doesn't exist, it will create it with a timestamped note indicating when it was created
6
+
*If it exists, it will compare the hash of the body of both scripts and update it in jamf if they differ. When updating, it will also update the notes with a timestamp of when the script was last updated, preserving any existing custom notes
7
+
* If enabled, it will add a prefix with the `branch name_` to a script.
8
8
9
9
After creating and updating scripts, if enabled, it can delete any leftover script that is not found in github, thus keeping Github as your one source.
10
10
11
+
## Notes Management
12
+
The action automatically manages notes in Jamf scripts:
13
+
-**New scripts**: Get a "created via github action on [timestamp]" note
14
+
-**Updated scripts**: Get an "updated via github action on [timestamp]" note added/updated
15
+
-**Existing notes**: Custom notes are preserved and GitHub action timestamps are kept at the top
16
+
-**Order**: Created timestamp (if present) appears first, followed by updated timestamp, then any custom notes
0 commit comments