-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1257329
commit 4e96efe
Showing
4 changed files
with
60 additions
and
11 deletions.
There are no files selected for viewing
Empty file.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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" | ||
if ! git diff --quiet -- .github/badges/; then | ||
git config --local user.name "github-actions[bot]" | ||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git add .github/badges/ | ||
git commit -m "Update extension version badge to $PACKAGE_VERSION" | ||
git push | ||
else | ||
echo "No changes in the badges directory." | ||
fi |
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