aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-01-09 22:57:54 +0530
committerpukkandan <pukkandan@gmail.com>2021-01-09 22:58:23 +0530
commitb2f70ae74e021af739bc73f3fc516c1caba32817 (patch)
treee37a6e93739ef20a0611326591cc79139fe4122b
parent5ac23244609314e3e76da89a992ae76160a68238 (diff)
downloadhypervideo-pre-b2f70ae74e021af739bc73f3fc516c1caba32817.tar.lz
hypervideo-pre-b2f70ae74e021af739bc73f3fc516c1caba32817.tar.xz
hypervideo-pre-b2f70ae74e021af739bc73f3fc516c1caba32817.zip
Update version badge automatically in README
Uses: https://github.com/Schneegans/dynamic-badges-action
-rw-r--r--.github/workflows/build.yml16
-rw-r--r--Changelog.md6
-rw-r--r--README.md3
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 <number>`
+* Update Changelog.md and Authors-Fork
+* Commit to master as `Release <version>`
* 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)
+<!-- See: https://github.com/marketplace/actions/dynamic-badges -->
+[![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)