-
Notifications
You must be signed in to change notification settings - Fork 1
GitHub Workflows example
74k1 edited this page Apr 28, 2025
·
1 revision
Setup your variables so that:
-
JAMF_PRO_URLshould behttps://yourcompany.jamfcloud.com -
CLIENT_IDshould be the generated Client ID from your Jamf Instance. -
CLIENT_SECRETshould be the generated Client Secret from your Jamf Instance.
name: jamfGitSync
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
push-changes-to-jamf-pro-1:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Install Requirements
run: sudo apt-get update && sudo apt-get install jq -y
- name: Push Changes to Jamf Pro Server 1
run: ./jamfGitSync.sh --url ${{ vars.JAMF_PRO_URL }} --clientid ${{ vars.CLIENT_ID }} --clientsecret ${{ secrets.CLIENT_SECRET }} --push-changes-to-jamf-pro --backup-updated
- name: Archive Backups
uses: actions/upload-artifact@v3
with:
name: jamf-pro-backups
path: backups