-
Notifications
You must be signed in to change notification settings - Fork 40
53 lines (51 loc) · 1.56 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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"
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/[email protected]
with:
# Optional. The title of the commit that is made
# Default: "Update OPRF Assets"
commit_message: "Auto-Update shared Files"
if: "${{ github.event_name == 'workflow_dispatch' }}"
with:
include: ${{ inputs.include }}
exclude: ${{ inputs.exclude }}
compatibility: ${{ inputs.compatibility }}
- name: "Scheduled Update"
- uses: BobDotCom/[email protected]
with:
# Optional. The title of the commit that is made
# Default: "Update OPRF Assets"
commit_message: "Auto-Update shared Files"
if: "${{ github.event_name != 'workflow_dispatch' }}"