Skip to content

Commit

Permalink
Merge pull request #70 from Slivo-fr/release/v2.2.10
Browse files Browse the repository at this point in the history
Release/v2.2.10
  • Loading branch information
Slivo-fr authored Nov 25, 2024
2 parents 461bdd8 + 0788c01 commit 4e5e0d0
Show file tree
Hide file tree
Showing 10 changed files with 75 additions and 43 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# description of this workflow, can be anything you want
name: Package and release

# we need to let GitHub know _when_ we want to release, typically only when we create a new tag.
# this will target only tags, and not all pushes to the master branch.
# this part can be heavily customized to your liking, like targeting only tags that match a certain word,
# other branches or even pullrequests.
on:
push:
tags:
- '**'

# a workflow is built up as jobs, and within these jobs are steps
jobs:

# "release" is a job, you can name it anything you want
release:

# we can run our steps on pretty much anything, but the "ubuntu-latest" image is a safe bet
runs-on: ubuntu-latest

# specify the environment variables used by the packager, matching the secrets from the project on GitHub
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} # "GITHUB_TOKEN" is a secret always provided to the workflow
# for your own token, the name cannot start with "GITHUB_"

# "steps" holds a list of all the steps needed to package and release our AddOn
steps:

# we first have to clone the AddOn project, this is a required step
- name: Clone project
uses: actions/checkout@v3
with:
fetch-depth: 0 # gets entire git history, needed for automatic changelogs

# once cloned, we just run the GitHub Action for the packager project
- name: Package and release
uses: BigWigsMods/packager@v2
with:
args: -n {package-name}-{project-version}:{package-name}-{project-version}
9 changes: 6 additions & 3 deletions TranqRotate.toc
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
## Interface: 11504
## Title: TranqRotate |cff00aa002.2.9|r
## Interface: 11505, 20504
## Title: TranqRotate |cff00aa002.2.10|r
## Notes: A tranqshot rotation assistant
## Author: Slivo
## Version: 2.2.9
## Version: 2.2.10
## SavedVariables: TranqRotateDb
## OptionalDeps: Ace3

## X-Curse-Project-ID: 353296
## X-Wago-ID: baNDJ8Ko

#@no-lib-strip@
libs\LibStub\LibStub.lua
libs\CallbackHandler-1.0\CallbackHandler-1.0.xml
Expand Down
40 changes: 0 additions & 40 deletions TranqRotate_TBC.toc

This file was deleted.

5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## TranqRotate Changelog

#### v2.2.10

- Update toc for 1.15.5
- Add chat messages to explain the reason of an automated backup alert

#### v2.2.9

- Frenzy detection - update spell IDs to match Blizzard changes
Expand Down
4 changes: 4 additions & 0 deletions locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ local L = {
["PRINT_FAILED_TRANQ_RESIST"] = "%s's tranqshot was resisted!",
["PRINT_FAILED_TRANQ_MISS_OR_RESIST"] = "%s's tranqshot was missed or resisted!",

-- Incapacitated backup call printed messages
["PRINT_INCAPACITATED_BACKUP_CALL"] = "Backup has been automatically requested because your were incapacitated",
["PRINT_TIMED_BACKUP_CALL"] = "Backup has been automatically requested because your were too slow",

-- Version check printed messages
["VERSION_CHECK_HEADER"] = "Version check",
["VERSION_CHECK_YOU"] = "You",
Expand Down
4 changes: 4 additions & 0 deletions locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ local L = {
["PRINT_FAILED_TRANQ_RESIST"] = "Le tranqshot de %s a été résisté!",
["PRINT_FAILED_TRANQ_MISS_OR_RESIST"] = "Le tranqshot de %s a raté ou a été résisté!",

-- Incapacitated backup call printed messages
["PRINT_INCAPACITATED_BACKUP_CALL"] = "Un backup a été demandé automatiquement parce que vous étiez \"paralysé\"",
["PRINT_TIMED_BACKUP_CALL"] = "Un backup a été demandé automatiquement parce que vous avez mis trop de temps à tranq",

-- Version check printed messages
["VERSION_CHECK_HEADER"] = "Contrôle des versions",
["VERSION_CHECK_YOU"] = "Vous",
Expand Down
4 changes: 4 additions & 0 deletions locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ local L = {
["PRINT_FAILED_TRANQ_RESIST"] = "%s's tranqshot was resisted!",
["PRINT_FAILED_TRANQ_MISS_OR_RESIST"] = "%s's tranqshot was missed or resisted!",

-- Incapacitated backup call printed messages
["PRINT_INCAPACITATED_BACKUP_CALL"] = "Backup has been automatically requested because your were incapacitated",
["PRINT_TIMED_BACKUP_CALL"] = "Backup has been automatically requested because your were too slow",

-- Version check printed messages
["VERSION_CHECK_HEADER"] = "Version check",
["VERSION_CHECK_YOU"] = "You",
Expand Down
4 changes: 4 additions & 0 deletions locales/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ local L = {
["PRINT_FAILED_TRANQ_RESIST"] = "%s's tranqshot was resisted!",
["PRINT_FAILED_TRANQ_MISS_OR_RESIST"] = "%s's tranqshot was missed or resisted!",

-- Incapacitated backup call printed messages
["PRINT_INCAPACITATED_BACKUP_CALL"] = "Backup has been automatically requested because your were incapacitated",
["PRINT_TIMED_BACKUP_CALL"] = "Backup has been automatically requested because your were too slow",

-- Version check printed messages
["VERSION_CHECK_HEADER"] = "Version check",
["VERSION_CHECK_YOU"] = "You",
Expand Down
4 changes: 4 additions & 0 deletions locales/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ local L = {
["PRINT_FAILED_TRANQ_RESIST"] = "%s's tranqshot was resisted!",
["PRINT_FAILED_TRANQ_MISS_OR_RESIST"] = "%s's tranqshot was missed or resisted!",

-- Incapacitated backup call printed messages
["PRINT_INCAPACITATED_BACKUP_CALL"] = "Backup has been automatically requested because your were incapacitated",
["PRINT_TIMED_BACKUP_CALL"] = "Backup has been automatically requested because your were too slow",

-- Version check printed messages
["VERSION_CHECK_HEADER"] = "Version check",
["VERSION_CHECK_YOU"] = "You",
Expand Down
2 changes: 2 additions & 0 deletions src/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function TranqRotate:COMBAT_LOG_EVENT_UNFILTERED()

if (TranqRotate.db.profile.enableIncapacitatedBackupAlert and TranqRotate:isPlayedIncapacitatedByDebuff()) then
TranqRotate:alertBackup(TranqRotate.db.profile.unableToTranqMessage)
TranqRotate:printPrefixedMessage(string.format(L['PRINT_INCAPACITATED_BACKUP_CALL']))
end
end

Expand Down Expand Up @@ -158,6 +159,7 @@ function TranqRotate:handleTimedAlert()
C_Timer.After(TranqRotate.db.profile.timedBackupAlertDelay, function()
if (TranqRotate.frenzy and TranqRotate:isPlayerNextTranq()) then
TranqRotate:alertBackup(TranqRotate.db.profile.unableToTranqMessage)
TranqRotate:printPrefixedMessage(string.format(L['PRINT_TIMED_BACKUP_CALL']))
end
end)
end
Expand Down

0 comments on commit 4e5e0d0

Please sign in to comment.