Merge pull request #1027 from mandiant/package-ida.plugin.comida #76
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
name: Updates packages number badge on README | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
update_badge: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Count packages | |
run: | | |
# Counts all packages in /packages including installer.vm | |
num_packages=$(ls packages | wc -l) | |
echo "num_packages=$num_packages" >> $GITHUB_ENV | |
- name: Update dynamic badge gist | |
uses: schneegans/dynamic-badges-action@e9a478b16159b4d31420099ba146cdc50f134483 # v1.7.0 | |
with: | |
auth: ${{ secrets.REPO_TOKEN }} | |
gistID: 0e28118f551692f3401ac669e1d6761d | |
filename: packages_badge.svg | |
label: packages | |
message: ${{ env.num_packages }} | |
color: blue |