From b2f70ae74e021af739bc73f3fc516c1caba32817 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sat, 9 Jan 2021 22:57:54 +0530 Subject: [PATCH] Update version badge automatically in README Uses: https://github.com/Schneegans/dynamic-badges-action --- .github/workflows/build.yml | 16 ++++++++++++++++ Changelog.md | 6 +++--- README.md | 3 ++- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 828c2b0d5..fa23a9965 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -161,3 +161,19 @@ jobs: asset_path: ./SHA2-256SUMS asset_name: SHA2-256SUMS asset_content_type: text/plain + + update_version_badge: + + runs-on: ubuntu-latest + + needs: build_unix + + steps: + - name: Create Version Badge + uses: schneegans/dynamic-badges-action@v1.0.0 + with: + auth: ${{ secrets.GIST_TOKEN }} + gistID: c69cb23c3c5b3316248e52022790aa57 + filename: version.json + label: Version + message: ${{ needs.build_unix.outputs.ytdlc_version }} diff --git a/Changelog.md b/Changelog.md index 1b9721366..2cb8b41b9 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,10 +4,10 @@ # Instuctions for creating release * Run `make doc` -* Add changelog, bump version in top of Readme -* Commit to master as `Release ` +* Update Changelog.md and Authors-Fork +* Commit to master as `Release ` * Push to origin/release - build task will now run -* Update version.py and run `make doc` +* Update version.py and run `make issuetemplates` * Commit to master as `[version] update` * Push to origin/master diff --git a/README.md b/README.md index 1bd9c4d49..f69d87d60 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -[![Release Version](https://img.shields.io/badge/Release-2021.01.09-brightgreen)](https://github.com/pukkandan/yt-dlc/releases/latest) + +[![Release Version](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/pukkandan/c69cb23c3c5b3316248e52022790aa57/raw/version.json&color=brightgreen)](https://github.com/pukkandan/yt-dlc/releases/latest) [![License: Unlicense](https://img.shields.io/badge/License-Unlicense-blue.svg)](https://github.com/pukkandan/yt-dlc/blob/master/LICENSE) [![Core Status](https://github.com/pukkandan/yt-dlc/workflows/Core%20Test/badge.svg?branch=master)](https://github.com/pukkandan/yt-dlc/actions?query=workflow%3ACore) [![CI Status](https://github.com/pukkandan/yt-dlc/workflows/Full%20Test/badge.svg?branch=master)](https://github.com/pukkandan/yt-dlc/actions?query=workflow%3AFull)