Fetches an rpi-imager.json from the latest GitHub release matching parameters provided in the action inputs.
Supposed to be used in tandem with OctoPrint/actions/package-rpi-image.
Required The GitHub token to use, should usually be set to secrets.GITHUB_TOKEN
.
Required The owner of the repository to monitor.
Required The name of the repository to monitor.
Required The name of the output file to write the snippet to.
If set to true
, prereleases will also be considered for the latest release.
If set and doesn't match either a release's name or description, the release will be ignored.
If set and matches either a release's name or description, the release will be ignored.
- name: "🆕 Fetch rpi-imager.json snippet"
uses: OctoPrint/actions/fetch-rpi-imager-snippet@main
with:
token: "${{ secrets.GITHUB_TOKEN }}"
owner: OctoPrint
repo: OctoPi-UpToDate
ignoreRegex: "rc|branch|mark:ignored|mark:untested"
output: ./files/rpi-imager-latest.json