Coder Social home page Coder Social logo

nudge-actions's Introduction

nudge-actions

Reusable Workflow and stand-alone Python script for updating a Nudge osVersionRequirements array using Apple's gdfm service (https://gdmf.apple.com/v2/pmv).

Reusable Workflow

To call this workflow from your own repo, create a GitHub Actions Workflow file with the following jobs block:

name: "Test workflow_call"

on:
  workflow_dispatch:
  # schedule: # Uncomment to run this on a schedule
  #   - cron: '0 1 * * *' # Runs at 01:00am each day UTC

permissions:
  contents: write
  pull-requests: write

jobs:
  call_workflow:
    uses: smithjw/nudge-actions/.github/workflows/update-nudge-version.yml@main
    with:
      unos_test_mode: true
  • The permissions block is required so that the Reusable Workflow is able to write changes to the json file in your repo and open a new PR before those changes are merged into your main branch.
  • If you would like to specify the minimum os version, add unos_min_major_os_version to your Workflow
  • If you would like to specify location (relative to the working directory of your repo) of the nudge.json file, add unos_nudge_json_file to your Workflow
  • To write an updated file, and create a new in your repo, set unos_test_mode to false

Python Script

To run the Python script independly of the GitHub Actions Reusable Workflow, please see the documentation here

Notes

If https://gdmf.apple.com/v2/pmv changes format in the future or can no longer be used, an alternative could be https://jamf-patch.jamfcloud.com/v1/software/

nudge-actions's People

Contributors

smithjw avatar dependabot[bot] avatar

Stargazers

 avatar JP avatar Brad Reno avatar  avatar William Mehilos avatar  avatar Alex Loewenthal avatar Jens Malessa avatar Jennifer Johnson avatar Nick Kalister avatar Mischa van der Bent avatar notverypc avatar Andrew Doering avatar Ross Derewianko avatar

Watchers

 avatar  avatar  avatar

Forkers

aube-pluviose

nudge-actions's Issues

Add `--xml` as option to script

Add an --xml option to the script so that the osVersionRequirements array can be used directly in a COnfiguration Profile.
Optionally output a valid PLIST from the json template.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.