forked from BigWigsMods/packager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
23 lines (23 loc) · 839 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: WoW Packager
description: Build and publish World of Warcraft AddOns
branding:
icon: package
color: yellow
inputs:
args:
description: 'Command-line arguments. See https://github.com/BigWigsMods/packager#usage'
required: false
pandoc:
description: 'Install pandoc before packaging if uploading to WoWInterface.'
required: false
default: 'true'
runs:
using: composite
steps:
- run: |
if [[ -n "$WOWI_API_TOKEN" && "${{ github.ref }}" == "refs/tags/"* && "${{ inputs.pandoc }}" == "true" ]] && ! hash pandoc &>/dev/null; then
sudo apt-get install -yq pandoc &>/dev/null && echo -e "##[group]Install pandoc\\n[command]pandoc --version\\n$( pandoc --version )\\n##[endgroup]"
fi
shell: bash
- run: $GITHUB_ACTION_PATH/release.sh ${{ inputs.args }}
shell: bash