Automated regeneration of media databases #17
Workflow file for this run
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: Pull Request | |
on: pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v2 | |
- uses: actions/setup-ruby@v1 | |
- uses: actions/checkout@v3 | |
- name: Run Luacheck | |
uses: nebularg/actions-luacheck@v1 | |
with: | |
args: --no-color -q | |
annotate: warning | |
- name: Run editorconfig-checker | |
uses: wow-rp-addons/actions-editorconfig-check@v1.0.1 | |
with: | |
args: -no-color | |
files: $(git ls-files '*.lua' '*.xml' '*.toc' ':!:Exporter/Libs/' ':!:Exporter/Data/') | |
- name: Create Package | |
uses: BigWigsMods/packager@master | |
with: | |
args: -d -S -z | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: LibRPMedia-PR-${{ github.event.number }} | |
path: .release/ | |
- name: Send Webhook Notification | |
if: failure() | |
run: | | |
git clone https://github.com/DiscordHooks/github-actions-discord-webhook.git webhook | |
bash webhook/send.sh $JOB_STATUS $WEBHOOK_URL | |
env: | |
JOB_STATUS: ${{ job.status }} | |
HOOK_OS_NAME: ${{ runner.os }} | |
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} | |
WORKFLOW_NAME: ${{ github.workflow }} |