Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: workflow to ping Discord users when patches are released #72

Merged
merged 5 commits into from
Aug 11, 2024

Conversation

KobeW50
Copy link
Collaborator

@KobeW50 KobeW50 commented Aug 8, 2024

This PR is on the main branch because I want to see it tested on your repositories before the Discord server is opened, and I don't want to have to wait until 2 releases from now.

image

The workflow is from https://github.com/marketplace/actions/actions-status-discord

ChatGPT helped me get it working, so there's probably some things that need to be corrected. But it works flawlessly.

It references the release with the release tag, and it does not differentiate between public releases and pre-releases. This isnt such an issue since you always name pre-release tags as vx.xx.x-dev.x. But it may be worthwhile to change this workflow so that it says "Patches vx.xx.x-dev.x has been pre-released!" for pre-releases.

I do not know of a good way to distinguish between standard releases and pre-releases, since the prereleased type does not trigger if the pre-release is published from a draft. See the GitHub actions documentation for more detail.

Additional setup

You will need to add the webhook URL as a repository secret. I will message you privately with the webhook URL secret. To add the webhook URL, open this repository's Settings > Secrets and variables > Actions > New repository secret. Name it DISCORD_WEBHOOK_URL.

@inotia00 inotia00 changed the title Workflow to ping Discord users when patches are released ci: workflow to ping Discord users when patches are released Aug 11, 2024
@inotia00 inotia00 merged commit 6499b7d into inotia00:revanced-extended Aug 11, 2024
inotia00 added a commit that referenced this pull request Aug 11, 2024
KobeW50 pushed a commit to KobeW50/inotia00-patches that referenced this pull request Aug 30, 2024
* Update release.yml

* Update release

* feat(YouTube - Translation): Update `Italian` (inotia00#73)

* Update Polish strings.xml (inotia00#71)

Translated 3 strings related to swipe controls.

* Update strings.xml

* Delete src/main/resources/youtube/translations/it-rIT/missing_strings.xml

* Delete src/main/resources/youtube/translations/it-rIT/updated-strings.xml

* Update strings.xml

* Update strings.xml

---------

Co-authored-by: GucekPL <69505731+GucekPL@users.noreply.github.com>

* chore(release): 2.222.0-dev.1 [skip ci]

# [2.222.0-dev.1](anddea/revanced-patches@v2.221.1...v2.222.0-dev.1) (2024-03-17)

### Features

* **YouTube - Translation:** Update `Italian` ([inotia00#73](anddea/revanced-patches#73)) ([ee9f012](anddea/revanced-patches@ee9f012)), closes [inotia00#71](anddea/revanced-patches#71)

* fix(YouTube - Swipe controls): Fix some strings

* fix(YouTube/YT Music - Debugging): Disable by default

* chore(release): 2.222.0-dev.2 [skip ci]

# [2.222.0-dev.2](anddea/revanced-patches@v2.222.0-dev.1...v2.222.0-dev.2) (2024-03-18)

### Bug Fixes

* **YouTube - Swipe controls:** Fix some strings ([074e3e4](anddea/revanced-patches@074e3e4))
* **YouTube/YT Music - Debugging:** Disable by default ([241b6dd](anddea/revanced-patches@241b6dd))

* Update build.gradle.kts

* feat(YouTube - Translations): Update `Japanese` (inotia00#81)

* Update missing_strings.xml

* Update strings.xml

* feat(YouTube - Translations): Update `Spanish` (inotia00#79)

* Update strings.xml

* Update updated-strings.xml

* Update missing_strings.xml

* fix(YouTube - Translations): Update translations info

* chore(release): 2.222.0-dev.3 [skip ci]

# [2.222.0-dev.3](anddea/revanced-patches@v2.222.0-dev.2...v2.222.0-dev.3) (2024-03-18)

### Bug Fixes

* **YouTube - Translations:** Update translations info ([c30c031](anddea/revanced-patches@c30c031))

### Features

* **YouTube - Translations:** Update `Japanese` ([inotia00#81](anddea/revanced-patches#81)) ([5191bbe](anddea/revanced-patches@5191bbe))
* **YouTube - Translations:** Update `Spanish` ([inotia00#79](anddea/revanced-patches#79)) ([1c3731d](anddea/revanced-patches@1c3731d))

* feat(YouTube - Translations): Update `Ukrainian`

* chore(release): 2.222.0-dev.4 [skip ci]

# [2.222.0-dev.4](anddea/revanced-patches@v2.222.0-dev.3...v2.222.0-dev.4) (2024-03-18)

### Features

* **YouTube - Translations:** Update `Ukrainian` ([ac81500](anddea/revanced-patches@ac81500))

* feat(YouTube - Translations): Update `Brazillian Portuguese` (inotia00#85)

* Update Brazillian Portuguese strings.xml

Translated 22 strings.

* Update strings.xml

---------

Co-authored-by: Aaron Veil <70171475+anddea@users.noreply.github.com>

* fix(YouTube - Translations): Update translations info

ar - 10 missing strings.
bg-rBG - 55 missing strings.
bn - 246 missing strings.
de-rDE - 308 missing strings.
el-rGR - 23 missing strings.
No missing strings for es-rES
fi-rFI - 247 missing strings.
fr-rFR - 3 missing strings.
hu-rHU - 23 missing strings.
id-rID - 179 missing strings.
in - 179 missing strings.
No missing strings for it-rIT
No missing strings for ja-rJP
ko-rKR - 3 missing strings.
No missing strings for pl-rPL
No missing strings for pt-rBR
ru-rRU - 3 missing strings.
tr-rTR - 23 missing strings.
No missing strings for uk-rUA
vi-rVN - 23 missing strings.
zh-rCN - 206 missing strings.
zh-rTW - 28 missing strings.

* Update build

* chore(release): 2.222.0-dev.5 [skip ci]

# [2.222.0-dev.5](anddea/revanced-patches@v2.222.0-dev.4...v2.222.0-dev.5) (2024-03-19)

### Bug Fixes

* **YouTube - Translations:** Update translations info ([17a514e](anddea/revanced-patches@17a514e))

### Features

* **YouTube - Translations:** Update `Brazillian Portuguese` ([inotia00#85](anddea/revanced-patches#85)) ([12ee1e1](anddea/revanced-patches@12ee1e1))

* feat(YouTube - Translations): Update `Korean`

* fix(YouTube - Translations): Update translations info

ar - 10 missing strings.
bg-rBG - 55 missing strings.
bn - 246 missing strings.
de-rDE - 308 missing strings.
el-rGR - 23 missing strings.
No missing strings for es-rES
fi-rFI - 247 missing strings.
fr-rFR - 3 missing strings.
hu-rHU - 23 missing strings.
id-rID - 179 missing strings.
in - 179 missing strings.
No missing strings for it-rIT
No missing strings for ja-rJP
No missing strings for ko-rKR
No missing strings for pl-rPL
No missing strings for pt-rBR
ru-rRU - 3 missing strings.
tr-rTR - 23 missing strings.
No missing strings for uk-rUA
vi-rVN - 23 missing strings.
zh-rCN - 206 missing strings.
zh-rTW - 28 missing strings.

* fix(YouTube - Change player flyout panel toggles): Fix for supported versions

* chore(release): 2.222.0-dev.6 [skip ci]

# [2.222.0-dev.6](anddea/revanced-patches@v2.222.0-dev.5...v2.222.0-dev.6) (2024-03-19)

### Bug Fixes

* **YouTube - Change player flyout panel toggles:** Fix for supported versions ([a9fe961](anddea/revanced-patches@a9fe961))
* **YouTube - Translations:** Update translations info ([56ad720](anddea/revanced-patches@56ad720))

### Features

* **YouTube - Translations:** Update `Korean` ([8b11f6a](anddea/revanced-patches@8b11f6a))

* Update pull_request.yml

* Bump dependencies

* feat(YouTube - Translations): Update `Japanese` (inotia00#89)

* feat(YouTube - Speed overlay): Change the speed overlay icon and fix patch for applying to earlier versions (inotia00#92)

* fix(YouTube): Adjusting patches to apply correctly to earlier versions. (inotia00#94)

* fix(YouTube): Adjusting patches to apply correctly to earlier versions.

* Update revanced_prefs.xml

---------

Co-authored-by: Aaron Veil <70171475+anddea@users.noreply.github.com>

* feat(YouTube - Translations): Update `Russian` (inotia00#95)

* feat(YouTube): Bump support version `19.09.38` - `19.10.39` (inotia00#96)

* feat(YouTube - Hide layout components): Add `Subscriptions` tab and `Comments` to `Keyword filter`

* Update `api`

* fix(YouTube - Translations): Update translations info

ar - 19 missing strings.
bg-rBG - 64 missing strings.
bn - 255 missing strings.
de-rDE - 317 missing strings.
el-rGR - 32 missing strings.
es-rES - 9 missing strings.
fi-rFI - 256 missing strings.
fr-rFR - 12 missing strings.
hu-rHU - 32 missing strings.
id-rID - 188 missing strings.
in - 188 missing strings.
it-rIT - 9 missing strings.
ja-rJP - 9 missing strings.
ko-rKR - 9 missing strings.
pl-rPL - 9 missing strings.
pt-rBR - 9 missing strings.
ru-rRU - 9 missing strings.
tr-rTR - 32 missing strings.
uk-rUA - 9 missing strings.
vi-rVN - 32 missing strings.
zh-rCN - 215 missing strings.
zh-rTW - 37 missing strings.

To update your language, fork this repo, switch to `dev` branch, go to your language folder `src/main/resources/youtube/translations`, update `strings.xml` by copy-pasting from `missing_strings.xml` and `updated-strings.xml`. Then open pull request (Github will offer you to do that after your changes) to this repo `dev` branch.

* chore(release): 2.222.0-dev.7 [skip ci]

# [2.222.0-dev.7](anddea/revanced-patches@v2.222.0-dev.6...v2.222.0-dev.7) (2024-03-21)

### Bug Fixes

* **YouTube - Translations:** Update translations info ([9babfd9](anddea/revanced-patches@9babfd9))
* **YouTube:** Adjusting patches to apply correctly to earlier versions. ([inotia00#94](anddea/revanced-patches#94)) ([cb02ba7](anddea/revanced-patches@cb02ba7))

### Features

* **YouTube - Hide layout components:** Add `Subscriptions` tab and `Comments` to `Keyword filter` ([bbc3217](anddea/revanced-patches@bbc3217))
* **YouTube - Speed overlay:** Change the speed overlay icon and fix patch for applying to earlier versions ([inotia00#92](anddea/revanced-patches#92)) ([d547cda](anddea/revanced-patches@d547cda))
* **YouTube - Translations:** Update `Japanese` ([inotia00#89](anddea/revanced-patches#89)) ([f8b40f8](anddea/revanced-patches@f8b40f8))
* **YouTube - Translations:** Update `Russian` ([inotia00#95](anddea/revanced-patches#95)) ([a00a7b6](anddea/revanced-patches@a00a7b6))
* **YouTube:** Bump support version `19.09.38` - `19.10.39` ([inotia00#96](anddea/revanced-patches#96)) ([bd7cb77](anddea/revanced-patches@bd7cb77))

* feat(YouTube - Translations): Update `Italian` (#102)

* Updates Italian strings.xml

* Deletes missing_strings.xml

* Deletes updated-strings.xml

* feat(YouTube - Translations): Update `Korean` (#108)

* Update strings.xml

* Update strings.xml

* Update strings.xml

* Update strings.xml

* Delete src/main/resources/youtube/translations/ko-rKR/missing_strings.xml

* Delete src/main/resources/youtube/translations/ko-rKR/updated-strings.xml

* Update strings.xml

* feat(YouTube - Translations): Update `Japanese` (ReVanced#107)

* Update strings.xml

* Delete src/main/resources/youtube/translations/ja-rJP/missing_strings.xml

* Delete src/main/resources/youtube/translations/ja-rJP/updated-strings.xml

* feat(YT Music): Bump new versions

* feat(YouTube): Bump support version `19.11.38` (ReVanced#110)

* feat(YouTube): Changing the default patch selection

* feat(YouTube) : Bump support version `19.11.38`

---------

Co-authored-by: Aaron Veil <70171475+anddea@users.noreply.github.com>

* fix(YouTube - Translations): Update translations info

ar - 19 missing strings.
bg-rBG - 64 missing strings.
bn - 255 missing strings.
de-rDE - 317 missing strings.
el-rGR - 32 missing strings.
es-rES - 9 missing strings.
fi-rFI - 256 missing strings.
fr-rFR - 12 missing strings.
hu-rHU - 32 missing strings.
id-rID - 188 missing strings.
in - 188 missing strings.
No missing strings for it-rIT
No missing strings for ja-rJP
ko-rKR - 2 missing strings.
pl-rPL - 9 missing strings.
pt-rBR - 9 missing strings.
ru-rRU - 9 missing strings.
tr-rTR - 32 missing strings.
uk-rUA - 9 missing strings.
vi-rVN - 32 missing strings.
zh-rCN - 215 missing strings.
zh-rTW - 37 missing strings.

To update your language, fork this repo, switch to `dev` branch, go to your language folder `src/main/resources/youtube/translations`, update `strings.xml` by copy-pasting from `missing_strings.xml` and `updated-strings.xml`. Then open pull request (Github will offer you to do that after your changes) to this repo `dev` branch.

* chore(release): 2.222.0-dev.8 [skip ci]

# [2.222.0-dev.8](anddea/revanced-patches@v2.222.0-dev.7...v2.222.0-dev.8) (2024-03-22)

### Bug Fixes

* **YouTube - Translations:** Update translations info ([302ffd6](anddea/revanced-patches@302ffd6))

### Features

* **YouTube - Translations:** Update `Italian` ([#102](anddea/revanced-patches#102)) ([580883c](anddea/revanced-patches@580883c))
* **YouTube - Translations:** Update `Japanese` ([ReVanced#107](anddea/revanced-patches#107)) ([cc87b2d](anddea/revanced-patches@cc87b2d))
* **YouTube - Translations:** Update `Korean` ([#108](anddea/revanced-patches#108)) ([f29bfa5](anddea/revanced-patches@f29bfa5))
* **YouTube:** Bump support version `19.11.38` ([ReVanced#110](anddea/revanced-patches#110)) ([99142d8](anddea/revanced-patches@99142d8))
* **YT Music:** Bump new versions ([1fbaeef](anddea/revanced-patches@1fbaeef))

* feat(YouTube - Translations): Update `Japanese` (#113)

* Update strings.xml

* Delete src/main/resources/youtube/translations/ja-rJP/missing_strings.xml

* Delete src/main/resources/youtube/translations/ja-rJP/updated-strings.xml

* Update strings.xml

* feat(YouTube - Translations): Update `Italian` (ReVanced#115)

* feat(YouTube - Translations): Update `Korean` (ReVanced#116)

* feat(YouTube - Translations): Update `Spanish` (ReVanced#117)

* feat(YouTube - Translations): Update `Italian` (ReVanced#119)

* feat(YouTube - Translations): Update `Korean` (ReVanced#120)

* Update strings.xml

* Delete src/main/resources/youtube/translations/ko-rKR/missing_strings.xml

* fix(YouTube - Shorts overlay buttons): Resize icons

* Support UTF-8 in python script

* fix(YouTube - Translations): Update translations info

* Update python script to close Terminal only when pressed Enter

* fix(YouTube - Translations): Update translations info

ar - 19 missing strings.
bg-rBG - 64 missing strings.
bn - 255 missing strings.
de-rDE - 317 missing strings.
el-rGR - 32 missing strings.
No missing strings for es-rES
fi-rFI - 256 missing strings.
fr-rFR - 12 missing strings.
hu-rHU - 32 missing strings.
id-rID - 188 missing strings.
in - 188 missing strings.
No missing strings for it-rIT
No missing strings for ja-rJP
No missing strings for ko-rKR
pl-rPL - 9 missing strings.
pt-rBR - 9 missing strings.
ru-rRU - 9 missing strings.
tr-rTR - 32 missing strings.
uk-rUA - 9 missing strings.
vi-rVN - 32 missing strings.
zh-rCN - 215 missing strings.
zh-rTW - 37 missing strings.

To update your language, fork this repo, switch to `dev` branch, go to your language folder `src/main/resources/youtube/translations`, update `strings.xml` by copy-pasting from `missing_strings.xml` and `updated-strings.xml`. Then open pull request (Github will offer you to do that after your changes) to this repo `dev` branch.

* feat(YT Music - Custom branding icon): Add more options

AFN Blue
AFN Red
Vanced Black
Vanced Light

Update some icons

* chore(release): 2.222.0-dev.9 [skip ci]

# [2.222.0-dev.9](anddea/revanced-patches@v2.222.0-dev.8...v2.222.0-dev.9) (2024-03-23)

### Bug Fixes

* **YouTube - Shorts overlay buttons:** Resize icons ([e348565](anddea/revanced-patches@e348565))
* **YouTube - Translations:** Update translations info ([12982f4](anddea/revanced-patches@12982f4))
* **YouTube - Translations:** Update translations info ([25ce0a9](anddea/revanced-patches@25ce0a9))

### Features

* **YouTube - Translations:** Update `Italian` ([ReVanced#115](anddea/revanced-patches#115)) ([31218ed](anddea/revanced-patches@31218ed))
* **YouTube - Translations:** Update `Italian` ([ReVanced#119](anddea/revanced-patches#119)) ([148a03e](anddea/revanced-patches@148a03e))
* **YouTube - Translations:** Update `Japanese` ([#113](anddea/revanced-patches#113)) ([8f2be3a](anddea/revanced-patches@8f2be3a))
* **YouTube - Translations:** Update `Korean` ([ReVanced#116](anddea/revanced-patches#116)) ([54516c1](anddea/revanced-patches@54516c1))
* **YouTube - Translations:** Update `Korean` ([ReVanced#120](anddea/revanced-patches#120)) ([73e6139](anddea/revanced-patches@73e6139))
* **YouTube - Translations:** Update `Spanish` ([ReVanced#117](anddea/revanced-patches#117)) ([18f5ac3](anddea/revanced-patches@18f5ac3))
* **YT Music - Custom branding icon:** Add more options ([86ec325](anddea/revanced-patches@86ec325))

* feat(YouTube - Translations): Update `Italian` (ReVanced#123)

* chore(release): 2.222.0-dev.10 [skip ci]

# [2.222.0-dev.10](anddea/revanced-patches@v2.222.0-dev.9...v2.222.0-dev.10) (2024-03-23)

### Features

* **YouTube - Translations:** Update `Italian` ([ReVanced#123](anddea/revanced-patches#123)) ([73fae53](anddea/revanced-patches@73fae53))

---------

Co-authored-by: Aaron Veil <70171475+anddea@users.noreply.github.com>
Co-authored-by: Kuddus73 <127908708+Kuddus73@users.noreply.github.com>
Co-authored-by: GucekPL <69505731+GucekPL@users.noreply.github.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: akir45 <91464996+akir45@users.noreply.github.com>
Co-authored-by: Freddy Morán Jr <freddynic159@gmail.com>
Co-authored-by: odkate <90364108+odkate@users.noreply.github.com>
Co-authored-by: Lemonade Moreira <39891447+LemonyOwO@users.noreply.github.com>
Co-authored-by: zerozero0022 <163995091+zerozero0022@users.noreply.github.com>
Co-authored-by: CaM/7oCe6e <_rufusin_@mail.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants