From 40903e2a837e203e6f59b5195c8c9404e32f2a5e Mon Sep 17 00:00:00 2001 From: "Nikolai V. Chr" Date: Thu, 28 Sep 2023 18:11:05 +0200 Subject: [PATCH] Update autoupdate script to v0.7 --- .github/workflows/main.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d6fa9cb..45f6088 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,21 +8,22 @@ on: workflow_dispatch: inputs: include: - description: "Files to update, separated by commas." + description: "Files to update, separated by commas" required: false default: "*" exclude: - description: "Files to skip, separated by commas." + description: "Files to skip, separated by commas" required: false default: "" - major: - description: "Allow major updates, not recommended until after verifying compatibility" + compatibility: + description: "Compatibility level, will only allow updates of this level or lower" required: true - default: "false" + default: "minor" type: choice options: - - "true" - - "false" + - "major" + - "minor" + - "patch" jobs: update: @@ -33,12 +34,15 @@ jobs: contents: write steps: - name: "Manual Update" - uses: BobDotCom/OPRFAssetUpdater@v0.4 + uses: BobDotCom/OPRFAssetUpdater@v0.7 if: "${{ github.event_name == 'workflow_dispatch' }}" with: include: ${{ inputs.include }} exclude: ${{ inputs.exclude }} - major: ${{ inputs.major }} + compatibility: ${{ inputs.compatibility }} + commit_message: "Auto-Update shared Files" - name: "Scheduled Update" - uses: BobDotCom/OPRFAssetUpdater@v0.4 + uses: BobDotCom/OPRFAssetUpdater@v0.7 + with: + commit_message: "Auto-Update shared Files" if: "${{ github.event_name != 'workflow_dispatch' }}"