Skip to content

Commit baf263f

Browse files
committed
Update workflow
1 parent 3ed24b8 commit baf263f

4 files changed

Lines changed: 55 additions & 22 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ on:
99
paths-ignore:
1010
- '.github/**'
1111

12-
env:
13-
CF_API_KEY: ${{ secrets.CF_API_KEY }}
14-
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
15-
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
16-
1712
jobs:
1813
build:
1914
runs-on: ubuntu-latest
@@ -22,15 +17,18 @@ jobs:
2217

2318
steps:
2419
- name: Checkout addon
25-
uses: actions/checkout@v4
20+
uses: actions/checkout@v6
2621
with:
2722
fetch-depth: 0
2823

2924
- name: Run luacheck
30-
uses: BigWigsMods/actions/luacheck@master
25+
uses: BigWigsMods/luacheck@main
3126
with:
32-
args: -qo 011
27+
args: -q
3328

34-
- uses: BigWigsMods/packager@master
35-
with:
36-
args: -S
29+
- name: Package
30+
uses: BigWigsMods/packager@master
31+
env:
32+
CF_API_KEY: ${{ secrets.CF_API_KEY }}
33+
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
34+
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pull_request.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88

99
steps:
1010
- name: Checkout addon
11-
uses: actions/checkout@v4
11+
uses: actions/checkout@v6
1212

1313
- name: Run luacheck
14-
uses: BigWigsMods/actions/luacheck@master
14+
uses: BigWigsMods/luacheck@main
1515
with:
16-
args: -qo 011
16+
args: -q

.luacheckrc

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
std = "lua51"
2+
max_line_length = false
3+
codes = true
4+
5+
ignore = {
6+
"11[13]/TranscriptDB",
7+
"12[12]/TranscriptIgnore",
8+
"143/string",
9+
"143/table",
10+
"211/L", -- unused variable L
11+
"542", -- empty if branch
12+
}
13+
not_globals = {
14+
"arg", -- arg is a standard global, so without this it won't error when we typo "args" in a module
15+
}
16+
read_globals = {
17+
"BigWigs",
18+
"BigWigsAPI",
19+
"C_Timer",
20+
"date",
21+
"ENABLE",
22+
"GameTooltip",
23+
"GetAddOnMemoryUsage",
24+
"GetDifficultyInfo",
25+
"GetInstanceInfo",
26+
"GetLocale",
27+
"GetRealZoneText",
28+
"InCombatLockdown",
29+
"LibStub",
30+
"RESET",
31+
"time",
32+
"TranscriptIgnore",
33+
"Transcriptor",
34+
"UNKNOWN",
35+
"UpdateAddOnMemoryUsage",
36+
"WOW_PROJECT_ID",
37+
}

Transcriptor.lua

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ if not plugin then return end
1111
-- Locals
1212
--
1313

14-
-- luacheck: globals Transcriptor TranscriptDB TranscriptIgnore
15-
-- luacheck: globals UpdateAddOnMemoryUsage GetAddOnMemoryUsage date time
16-
local ipairs, next, print, split, trim = ipairs, next, print, strsplit, strtrim
17-
local sort, concat, tremove, wipe = table.sort, table.concat, table.remove, table.wipe
14+
local ipairs, next, print, split, trim = ipairs, next, print, string.split, string.trim
15+
local sort, concat, tinsert, tremove, wipe = table.sort, table.concat, table.insert, table.remove, table.wipe
1816
local tonumber, ceil, floor = tonumber, math.ceil, math.floor
1917

2018
local logging = nil
@@ -82,7 +80,7 @@ local diffShort = {
8280

8381
local function parseLogInfo(logName, log)
8482
-- logNameFormat = "[2026-02-23]@[22:08:08] - Zone#2915 (Nexus-Point Xenas)#Difficulty#8 (Mythic+)#Type#party#WoWVer#12.0.1.66017#TSVer#v12.0.5"
85-
local year, month, day, hour, min, sec, map, diff, version, tsVersion = logName:match("^%[(%d+)-(%d+)-(%d+)%]@%[(%d+):(%d+):(%d+)%] %- Zone#(%d+).+#Difficulty#(%d+).+#Type#.+#WoWVer#(.+)#TSVer#(.+)$")
83+
local year, month, day, hour, min, sec, map, diff, version = logName:match("^%[(%d+)-(%d+)-(%d+)%]@%[(%d+):(%d+):(%d+)%] %- Zone#(%d+).+#Difficulty#(%d+).+#Type#.+#WoWVer#(.+)#TSVer#(.+)$")
8684
if not version then
8785
-- try previous format
8886
-- logNameFormat = "[%s]@[%s] - Zone:%d Difficulty:%d,%s Type:%s " .. format("Version: %s.%s", wowVersion, buildRevision)
@@ -293,7 +291,7 @@ do
293291
GameTooltip:Hide()
294292
--collectgarbage()
295293
end
296-
local function disabled(info)
294+
local function disabled()
297295
return InCombatLockdown()
298296
end
299297

@@ -620,12 +618,12 @@ do
620618
end
621619
end
622620

623-
function plugin:ENCOUNTER_END(_, id, name, diff, size, status)
621+
function plugin:ENCOUNTER_END(_, _, _, _, _, status)
624622
self:ScheduleTimer(Stop, status == 0 and 5 or 12) -- catch the end events
625623
end
626624
end
627625

628-
function plugin:ENCOUNTER_START(_, id, name, diff, size)
626+
function plugin:ENCOUNTER_START()
629627
self:Start()
630628
end
631629

0 commit comments

Comments
 (0)