Commit ba8bf05
Changed files (2)
.github
workflows
.github/workflows/github-action-regression-test.yaml
@@ -0,0 +1,11 @@
+on:
+ workflow_dispatch:
+
+jobs:
+ run-action:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: ./
+ with:
+ dryrun: true
action.yaml
@@ -0,0 +1,39 @@
+name: My Badges
+description: Generates My Badges
+author: my-badges
+branding:
+ icon: award
+ color: blue
+inputs:
+ token:
+ description: Auth token
+ default: ${{ github.token }}
+ user:
+ description: Username
+ default: ${{ github.repository_owner }}
+ repo:
+ description: Repository name to push badges
+ size:
+ description: Badge size for README.md, px
+ dryrun:
+ description: Generate badges, but skip pushing them to git
+ omit:
+ description: "List of badges to exclude. For example, if you're too shy to flex your stars: omit: stars-100,stars-500,stars-1000 or even shorter omit: stars-*"
+ pick:
+ description: 'list of badges to pick. Pass pick: a-commit,ab-commit,revert-revert-commit to generate only the specified entries. If empty gets all of them'
+ compact:
+ description: 'Represent the highest tier badges in README.md. For example, If you have both stars-100 and stars-500 achievements, only the last one will be shown'
+runs:
+ using: composite
+ steps:
+ - shell: bash
+ run: npm install -g update-my-badges
+ - shell: bash
+ run: >-
+ update-my-badges --token ${{ inputs.token }} --user ${{ inputs.user }
+ $([ "${{ inputs.repo }}" ] && echo --repo "${{ inputs.repo }}")
+ $([ "${{ inputs.size }}" ] && echo --size "${{ inputs.size }}")
+ $([ "${{ inputs.dryrun }}" = true ] && echo --dryrun)
+ $([ "${{ inputs.omit }}" ] && echo --omit "${{ inputs.omit }}")
+ $([ "${{ inputs.pick }}" ] && echo --pick "${{ inputs.pick }}")
+ $([ "${{ inputs.compact }}" = true ] && echo --compact)