Stanzilla patch 1 #35
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: CI-PR | |
on: | |
pull_request_target: | |
types: [opened, reopened, synchronize, labeled] | |
jobs: | |
permission_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions-cool/check-user-permission@v2 | |
id: check-permission | |
with: | |
require: write | |
username: ${{ github.triggering_actor }} | |
outputs: | |
require-result: ${{ steps.check-permission.outputs.require-result }} | |
build: | |
permissions: | |
pull-requests: write | |
runs-on: ubuntu-latest | |
needs: [permission_check] | |
if: needs.permission_check.outputs.require-result == 'true' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Install and run Luacheck | |
uses: nebularg/actions-luacheck@v1 | |
with: | |
args: "--no-color -q" | |
annotate: warning | |
- name: Update Build Date | |
run: sed -i "s/@build-time@/`date +%Y%m%d%H%M%S`/" WeakAuras/Init.lua | |
- name: Flag Experimental Build | |
run: | | |
sed -i \ | |
-e "s/--\[=====\[@non-experimental@/--@non-experimental@/" \ | |
-e "s/--@end-non-experimental@\]=====\]/--@end-non-experimental/" WeakAuras/Init.lua | |
- name: Create Package | |
uses: BigWigsMods/packager@v2 | |
with: | |
args: -d -z | |
- uses: actions/upload-artifact@v4 | |
id: upload-artifact | |
with: | |
name: WeakAuras-PR#${{ github.event.number }}-${{ github.sha }} | |
path: .release/ | |
- name: test | |
run: echo "test :o ${{ steps.upload-artifact.outputs.artifact-url }} " | |
- uses: exercism/[email protected] | |
if: ${{ contains(github.event.pull_request.labels.*.name, '🆕 Feature Preview') }} | |
with: | |
github-token: ${{ github.token }} | |
config-file: ".github/pr-commenter.yml" | |
template-variables: | | |
{ | |
"repository": "${{ github.repository }}", | |
"build_id": "${{ steps.upload-artifact.outputs.artifact-id }}", | |
"run_id": "${{ github.run_id }}" | |
} | |
- name: Send Status to Discord | |
uses: nebularg/actions-discord-webhook@v1 | |
with: | |
webhook_url: ${{ secrets.WEBHOOK_URL }} | |
status: ${{ job.status }} | |
if: failure() |