OPRF Asset Updater #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: "" | |
compatibility: | |
description: "Compatibility level, will only allow updates of this level or lower" | |
required: true | |
default: "minor" | |
type: choice | |
options: | |
- "major" | |
- "minor" | |
- "patch" | |
- "none" | |
jobs: | |
update: | |
# Needs to be a UNIX system | |
runs-on: ubuntu-latest | |
# Needs permission to write files to update them | |
permissions: | |
contents: write | |
steps: | |
- name: "Manual Update" | |
uses: BobDotCom/OPRFAssetUpdater@v0.10 | |
if: "${{ github.event_name == 'workflow_dispatch' }}" | |
with: | |
include: ${{ inputs.include }} | |
exclude: ${{ inputs.exclude }} | |
compatibility: ${{ inputs.compatibility }} | |
- name: "Scheduled Update" | |
uses: BobDotCom/OPRFAssetUpdater@v0.10 | |
with: | |
commit_message: "Files: Auto-Update Damage Libraries" | |
if: "${{ github.event_name != 'workflow_dispatch' }}" |