-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from jontze/release/v0.3.2
Prepare release v0.3.2
- Loading branch information
Showing
17 changed files
with
239 additions
and
187 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Yt-dlp Updater | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: 57 7 * * * # At 07:57 on every day | ||
|
||
jobs: | ||
check: | ||
name: Check Latest Version | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.latest.outputs.release }} | ||
isNew: ${{ steps.summary.outputs.isNew }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Read current Yt-dlp Version | ||
id: current | ||
run: | | ||
echo "version=$(cat .yt-dlprc)" >> $GITHUB_OUTPUT | ||
- name: Latest Release | ||
id: latest | ||
uses: pozetroninc/[email protected] | ||
with: | ||
repo: yt-dlp | ||
owner: yt-dlp | ||
- name: Summary | ||
id: summary | ||
run: | | ||
echo "# Yt-dlp Version Check" >> $GITHUB_STEP_SUMMARY | ||
echo "The **currently** used yt-dlp version is \`${{ steps.current.outputs.version }}\`." >> $GITHUB_STEP_SUMMARY | ||
echo "The **latest** yt-dlp version is \`${{ steps.latest.outputs.release }}\`." >> $GITHUB_STEP_SUMMARY | ||
if [ "${{ steps.current.outputs.version }}" = "${{ steps.latest.outputs.release }}" ]; then | ||
echo "isNew=false" >> $GITHUB_OUTPUT | ||
echo "The version is up to date. No update was triggered" >> $GITHUB_STEP_SUMMARY | ||
else | ||
echo "isNew=true" >> $GITHUB_OUTPUT | ||
echo "A new version is available. An update was triggered." >> $GITHUB_STEP_SUMMARY | ||
fi | ||
update: | ||
name: Update Version | ||
needs: | ||
- check | ||
if: needs.check.outputs.isNew == 'true' | ||
uses: ./.github/workflows/yt-dlp_update.yaml | ||
secrets: inherit | ||
with: | ||
version: ${{ needs.check.outputs.version }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Bump Yt-Dlp | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
required: true | ||
description: The new yt-dlp version | ||
type: string | ||
workflow_call: | ||
inputs: | ||
version: | ||
required: true | ||
description: The new yt-dlp version | ||
type: string | ||
|
||
env: | ||
YTDLP_VERSION_FILE: .yt-dlprc | ||
|
||
jobs: | ||
update: | ||
name: Update Version | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Update .yt-dlprc | ||
run: | | ||
rm $YTDLP_VERSION_FILE | ||
echo "${{ inputs.version }}" >> $YTDLP_VERSION_FILE | ||
cat $YTDLP_VERSION_FILE | ||
- name: Create PR | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
title: "Update yt-dlp to version `${{ inputs.version }}`" | ||
branch: "fix/yt-dlp-version-update" | ||
base: main | ||
add-paths: | | ||
${{ env.YTDLP_VERSION_FILE }} | ||
commit-message: "fix(yt-dlp): Update yt-dlp to `${{ inputs.version }}`" | ||
delete-branch: true | ||
body: This is an automated Pull Request to update the yt-dlp versions that is used in the docker image. | ||
labels: dependencies | ||
assignees: ${{ github.repository_owner }} | ||
reviewers: ${{ github.repository_owner }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2023.02.17 |
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,16 @@ | ||
[package] | ||
name = "cadency_core" | ||
version = "0.3.1" | ||
version = "0.3.2" | ||
edition = "2021" | ||
description = "Library with the core logic for the cadency discord bot" | ||
license = "MIT" | ||
repository = "https://github.com/jontze/cadency-rs" | ||
|
||
[dependencies] | ||
log = "0.4.17" | ||
reqwest = "0.11.14" | ||
thiserror = "1.0.38" | ||
mockall_double = "0.3.0" | ||
derive_builder = "0.12.0" | ||
|
||
[dependencies.serenity] | ||
version = "0.11.5" | ||
default-features = false | ||
features = ["client", "gateway", "rustls_backend", "model", "voice", "cache"] | ||
|
||
[dependencies.songbird] | ||
version = "0.3.0" | ||
features = ["builtin-queue", "yt-dlp"] | ||
|
||
[dev-dependencies] | ||
mockall = "0.11.3" | ||
|
||
[dev-dependencies.tokio] | ||
version = "1.25.0" | ||
features = ["macros", "rt-multi-thread"] | ||
log = { workspace = true } | ||
serenity = { workspace = true } | ||
songbird = { workspace = true } | ||
tokio = { workspace = true } | ||
reqwest = { workspace = true } | ||
thiserror = { workspace = true } | ||
derive_builder = { workspace = true } |
Oops, something went wrong.