From a04c7d71192a39dd7ca0cd30a211da3ca732c284 Mon Sep 17 00:00:00 2001 From: "Nikolai V. Chr" Date: Thu, 28 Sep 2023 16:39:48 +0200 Subject: [PATCH] Add auto-updating --- .github/workflows/main.yml | 44 ++++++ oprf-versions.json | 314 +++++++++++++++++++++++++++++++++++++ 2 files changed, 358 insertions(+) create mode 100644 .github/workflows/main.yml create mode 100644 oprf-versions.json diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d6fa9cb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,44 @@ +name: OPRF Asset Updater + +on: + # Once Daily + schedule: + - cron: "0 0 * * *" + # When the workflow is manually run + workflow_dispatch: + inputs: + include: + description: "Files to update, separated by commas." + required: false + default: "*" + exclude: + description: "Files to skip, separated by commas." + required: false + default: "" + major: + description: "Allow major updates, not recommended until after verifying compatibility" + required: true + default: "false" + type: choice + options: + - "true" + - "false" + +jobs: + update: + # Needs to be a UNIX system + runs-on: ubuntu-latest + # Needs permission to write files in order to update them + permissions: + contents: write + steps: + - name: "Manual Update" + uses: BobDotCom/OPRFAssetUpdater@v0.4 + if: "${{ github.event_name == 'workflow_dispatch' }}" + with: + include: ${{ inputs.include }} + exclude: ${{ inputs.exclude }} + major: ${{ inputs.major }} + - name: "Scheduled Update" + uses: BobDotCom/OPRFAssetUpdater@v0.4 + if: "${{ github.event_name != 'workflow_dispatch' }}" diff --git a/oprf-versions.json b/oprf-versions.json new file mode 100644 index 0000000..8aee6cb --- /dev/null +++ b/oprf-versions.json @@ -0,0 +1,314 @@ +{ + "vector": [ + { + "version": null, + "path": "BUK-M2/Nasal/vector.nas" + }, + { + "version": null, + "path": "depot/Nasal/vector.nas" + }, + { + "version": null, + "path": "fleet/Nasal/vector.nas" + }, + { + "version": null, + "path": "Frigate/Nasal/vector.nas" + }, + { + "version": null, + "path": "gci-radar/Nasal/vector.nas" + }, + { + "version": null, + "path": "groundtarget/Nasal/vector.nas" + }, + { + "version": null, + "path": "MIM-104D/Nasal/vector.nas" + }, + { + "version": null, + "path": "missile-frigate/Nasal/vector.nas" + }, + { + "version": null, + "path": "S-200/Nasal/vector.nas" + }, + { + "version": null, + "path": "S-300/Nasal/vector.nas" + }, + { + "version": null, + "path": "S-75/Nasal/vector.nas" + }, + { + "version": null, + "path": "SA-6/Nasal/vector.nas" + }, + { + "version": null, + "path": "ZSU-23/Nasal/vector.nas" + } + ], + "missile-code": [ + { + "version": null, + "path": "BUK-M2/Nasal/guided-missiles.nas" + }, + { + "version": null, + "path": "MIM-104D/Nasal/guided-missiles.nas" + }, + { + "version": null, + "path": "S-75/Nasal/guided-missiles.nas" + }, + { + "version": null, + "path": "SA-6/Nasal/guided-missiles.nas" + } + ], + "damage": [ + { + "version": null, + "path": "BUK-M2/Nasal/damage.nas" + }, + { + "version": null, + "path": "depot/Nasal/damage.nas" + }, + { + "version": null, + "path": "fleet/Nasal/damage.nas" + }, + { + "version": null, + "path": "Frigate/Nasal/damage.nas" + }, + { + "version": null, + "path": "gci-radar/Nasal/damage.nas" + }, + { + "version": null, + "path": "groundtarget/Nasal/damage.nas" + }, + { + "version": null, + "path": "MIM-104D/Nasal/damage.nas" + }, + { + "version": null, + "path": "missile-frigate/Nasal/damage.nas" + }, + { + "version": null, + "path": "S-200/Nasal/damage.nas" + }, + { + "version": null, + "path": "S-300/Nasal/damage.nas" + }, + { + "version": null, + "path": "S-75/Nasal/damage.nas" + }, + { + "version": null, + "path": "SA-6/Nasal/damage.nas" + }, + { + "version": null, + "path": "ZSU-23/Nasal/damage.nas" + } + ], + "datalink": [ + { + "version": null, + "path": "BUK-M2/Nasal/datalink.nas" + }, + { + "version": null, + "path": "fleet/Nasal/datalink.nas" + }, + { + "version": null, + "path": "MIM-104D/Nasal/datalink.nas" + }, + { + "version": null, + "path": "missile-frigate/Nasal/datalink.nas" + }, + { + "version": null, + "path": "S-200/Nasal/datalink.nas" + }, + { + "version": null, + "path": "S-300/Nasal/datalink.nas" + }, + { + "version": null, + "path": "S-75/Nasal/datalink.nas" + }, + { + "version": null, + "path": "SA-6/Nasal/datalink.nas" + }, + { + "version": null, + "path": "ZSU-23/Nasal/datalink.nas" + } + ], + "armament-notification": [ + { + "version": null, + "path": "BUK-M2/Nasal/ArmamentNotification.nas" + }, + { + "version": null, + "path": "depot/Nasal/ArmamentNotification.nas" + }, + { + "version": null, + "path": "fleet/Nasal/ArmamentNotification.nas" + }, + { + "version": null, + "path": "Frigate/Nasal/ArmamentNotification.nas" + }, + { + "version": null, + "path": "gci-radar/Nasal/ArmamentNotification.nas" + }, + { + "version": null, + "path": "groundtarget/Nasal/ArmamentNotification.nas" + }, + { + "version": null, + "path": "MIM-104D/Nasal/ArmamentNotification.nas" + }, + { + "version": null, + "path": "missile-frigate/Nasal/ArmamentNotification.nas" + }, + { + "version": null, + "path": "S-200/Nasal/ArmamentNotification.nas" + }, + { + "version": null, + "path": "S-300/Nasal/ArmamentNotification.nas" + }, + { + "version": null, + "path": "S-75/Nasal/ArmamentNotification.nas" + }, + { + "version": null, + "path": "SA-6/Nasal/ArmamentNotification.nas" + }, + { + "version": null, + "path": "ZSU-23/Nasal/ArmamentNotification.nas" + } + ], + "geo-bridged-transmitter": [ + { + "version": null, + "path": "BUK-M2/Nasal/GeoBridgedTransmitter.nas" + }, + { + "version": null, + "path": "depot/Nasal/GeoBridgedTransmitter.nas" + }, + { + "version": null, + "path": "fleet/Nasal/GeoBridgedTransmitter.nas" + }, + { + "version": null, + "path": "Frigate/Nasal/GeoBridgedTransmitter.nas" + }, + { + "version": null, + "path": "gci-radar/Nasal/GeoBridgedTransmitter.nas" + }, + { + "version": null, + "path": "groundtarget/Nasal/GeoBridgedTransmitter.nas" + }, + { + "version": null, + "path": "MIM-104D/Nasal/GeoBridgedTransmitter.nas" + }, + { + "version": null, + "path": "missile-frigate/Nasal/GeoBridgedTransmitter.nas" + }, + { + "version": null, + "path": "S-200/Nasal/GeoBridgedTransmitter.nas" + }, + { + "version": null, + "path": "S-300/Nasal/GeoBridgedTransmitter.nas" + }, + { + "version": null, + "path": "S-75/Nasal/GeoBridgedTransmitter.nas" + }, + { + "version": null, + "path": "SA-6/Nasal/GeoBridgedTransmitter.nas" + }, + { + "version": null, + "path": "ZSU-23/Nasal/GeoBridgedTransmitter.nas" + } + ], + "asset-fire-control": [ + { + "version": null, + "path": "BUK-M2/Nasal/fire-control.nas" + }, + { + "version": null, + "path": "MIM-104D/Nasal/fire-control.nas" + }, + { + "version": null, + "path": "S-75/Nasal/fire-control.nas" + }, + { + "version": null, + "path": "SA-6/Nasal/fire-control.nas" + } + ], + "asset-radar-logic": [ + { + "version": null, + "path": "BUK-M2/Nasal/radar-logic.nas" + }, + { + "version": null, + "path": "MIM-104D/Nasal/radar-logic.nas" + }, + { + "version": null, + "path": "S-75/Nasal/radar-logic.nas" + }, + { + "version": null, + "path": "SA-6/Nasal/radar-logic.nas" + }, + { + "version": null, + "path": "gci-radar/Nasal/radar-logic.nas" + } + ] +} \ No newline at end of file