-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (55 loc) · 2.43 KB
/
subtitles.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
54
55
56
57
58
59
60
# This is a basic workflow that is manually triggered
name: Manual workflow
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
workflow_dispatch:
# Inputs the workflow accepts.
inputs:
midi-file:
# Friendly description to be shown in the UI instead of 'name'
description: 'the midi file'
# Default value if no value is explicitly provided
default: 'song.mid'
# Input has to be provided for the workflow to run
required: true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "greet"
greet:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Cache APT Packages
# You may pin to the exact commit or the version.
# uses: awalsh128/cache-apt-pkgs-action@677fd9bce54b19c406f4a1651bca51b38b1f978a
uses: awalsh128/[email protected]
with:
# Space delimited list of packages to install.
packages: timidity ffmpeg fish # default is
# Version will create a new cache and install packages.
# version: # optional, default is
# Option to refresh / upgrade the packages in the same cache.
# refresh: # optional, default is false
# - name: Install Package
# # You may pin to the exact commit or the version.
# # uses: ConorMacBride/install-package@3e7ad059e07782ee54fa35f827df52aae0626f30
# uses: ConorMacBride/[email protected]
# with:
# # Packages to install with brew on macOS
# # brew: # optional, default is
# # Packages to install with brew cask on macOS
# # brew-cask: # optional, default is
# # Packages to install with apt on Linux
# apt: timidity ffmpeg fish # optional, default is
# # Packages to install with choco on Windows
# # choco: # optional, default is
- name: generate mp3
run: ./midi-to-mp3.fish ${{ github.event.inputs.midi-file }} ${{ github.event.inputs.midi-file }}.mp3 #echo "Hello ${{ github.event.inputs.name }}"
- uses: actions/upload-artifact@v3
with:
name: Artifacts-V3
path: ${{ github.event.inputs.midi-file }}.mp3