-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
fa3884e
commit e03efbd
Showing
55 changed files
with
262 additions
and
97 deletions.
There are no files selected for viewing
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,65 @@ | ||
--- | ||
name: Badges | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
Badges: | ||
name: Badges | ||
runs-on: ubuntu-22.04 # ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
env: | ||
fetch-depth: "1" | ||
with: | ||
path: repository | ||
|
||
- name: Get Badge Data | ||
run: | | ||
SNIPPETS_TOTAL=$(find repository/snippets/ -type f | wc -l) | ||
SNIPPETS_FUNCTIONS=$(find repository/snippets/Functions -type f | wc -l) | ||
SNIPPETS_OBJECTMANAGER=$(find repository/snippets/ObjectManager -type f | wc -l) | ||
SNIPPETS_MODULES=$(find repository/snippets/Modules -type f | wc -l) | ||
SNIPPETS_GENERATED=$((SNIPPETS_FUNCTIONS + SNIPPETS_OBJECTMANAGER + SNIPPETS_MODULES)) | ||
SNIPPETS_STATIC=$((SNIPPETS_TOTAL - SNIPPETS_GENERATED)) | ||
{ | ||
echo "SNIPPETS_TOTAL=$SNIPPETS_TOTAL" | ||
echo "SNIPPETS_GENERATED=$SNIPPETS_GENERATED" | ||
echo "SNIPPETS_STATIC=$SNIPPETS_STATIC" | ||
} >> "$GITHUB_ENV" | ||
- name: Create Total Snippet Counter Badge | ||
uses: schneegans/[email protected] | ||
with: | ||
auth: ${{ secrets.GIST }} | ||
gistID: e2729bfd9b81d9c032ded617a3f924e7 | ||
filename: ${{ github.event.repository.name }}:snippets-total.json | ||
label: Snippets Total | ||
message: ${{ env.SNIPPETS_TOTAL }} | ||
color: blue | ||
|
||
- name: Create Generated Snippet Counter Badge | ||
uses: schneegans/[email protected] | ||
with: | ||
auth: ${{ secrets.GIST }} | ||
gistID: e2729bfd9b81d9c032ded617a3f924e7 | ||
filename: ${{ github.event.repository.name }}:snippets-generated.json | ||
label: Snippets Generated | ||
message: ${{ env.SNIPPETS_GENERATED }} | ||
color: blue | ||
|
||
- name: Create Static Snippet Counter Badge | ||
uses: schneegans/[email protected] | ||
with: | ||
auth: ${{ secrets.GIST }} | ||
gistID: e2729bfd9b81d9c032ded617a3f924e7 | ||
filename: ${{ github.event.repository.name }}:snippets-static.json | ||
label: Snippets Static | ||
message: ${{ env.SNIPPETS_STATIC }} | ||
color: blue |
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,3 @@ | ||
.env | ||
coverage | ||
node_modules |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
.vscode/** | ||
.vscode-test/** | ||
.gitignore | ||
vsc-extension-quickstart.md |
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
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
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
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
2 changes: 1 addition & 1 deletion
2
snippets/Functions/EncodeObject/znuny.EncodeObject.ConfigureOutputFileHandle.code-snippets
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
4 changes: 2 additions & 2 deletions
4
snippets/Functions/EncodeObject/znuny.EncodeObject.EncodeInput.code-snippets
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
4 changes: 2 additions & 2 deletions
4
snippets/Functions/EncodeObject/znuny.EncodeObject.EncodeOutput.code-snippets
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
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
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
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
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
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
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
Oops, something went wrong.