This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
Added Issue Credential v1.0 and Present Proof v1.0 in supported proto… #49
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: Count Files and Publish to badge-info | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
count_files_and_publish_to_badgeinfo: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Count files in data/Credential-Profile folder | |
id: file_count | |
run: | | |
file_count=$(find data/Credential-Profile -type f | wc -l) | |
echo "profile-count=$file_count" >> $GITHUB_OUTPUT | |
- name: Create JSON file | |
run: | | |
mkdir values | |
echo "{ \"schemaVersion\": 1, \"label\": \"Profiles\", \"message\": \"${{ steps.file_count.outputs.profile-count }}\", \"color\": \"green\" }" > values/profiles.json | |
# Deploy to local repo | |
- name: Deploy | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: badge-info | |
FOLDER: values | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |