]> jfr.im git - yt-dlp.git/commitdiff
Update version badge automatically in README
authorpukkandan <redacted>
Sat, 9 Jan 2021 17:27:54 +0000 (22:57 +0530)
committerpukkandan <redacted>
Sat, 9 Jan 2021 17:28:23 +0000 (22:58 +0530)
Uses: https://github.com/Schneegans/dynamic-badges-action

.github/workflows/build.yml
Changelog.md
README.md

index 828c2b0d5db47e080759a8c62bb8108fb15d2175..fa23a9965bf3c214505157ec1d13ee93bc452391 100644 (file)
@@ -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 }}
index 1b9721366076a3c972618f2b0d2091632a19614a..2cb8b41b94fc8286c5728e44f7982f89d4150182 100644 (file)
@@ -4,10 +4,10 @@ # Changelog
 # 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
 
index 1bd9c4d49b33c184c67813fccb21270edd10fc9e..f69d87d60c66b69dee3d8a797c926154fd4020a6 100644 (file)
--- 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)