Test badges #15
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: Badges | |
on: | |
push: | |
branches: ['master'] | |
jobs: | |
badges: | |
name: Validation and Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update badges | |
run: | | |
PACKAGE_VERSION=$(jq -r '.version' packages/extension/package.json) | |
FORMATTED_DATE=$(date +"%d.%m.%Y") | |
echo $PACKAGE_VERSION | |
echo $TIMESTAMP | |
curl -o .github/badges/extension-version.svg "https://img.shields.io/badge/repository_extension_version-v$PACKAGE_VERSION-orange" | |
git config --local user.name "github-actions[bot]" | |
git add --all | |
git commit -m "Update extension version badge to $PACKAGE_VERSION" | |
git push |