diff --git a/.github/workflows/hoc-badge.yml b/.github/workflows/hoc-badge.yml new file mode 100644 index 00000000..b77803ab --- /dev/null +++ b/.github/workflows/hoc-badge.yml @@ -0,0 +1,24 @@ +--- +name: hoc-badge +on: + push: + branches: + - master +concurrency: + group: hoc-badge-${{ github.ref }} + cancel-in-progress: true +jobs: + hoc-badge: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: MikhailEpatko/hits-of-code-badge@main + with: + output_dir: gh-pages + filename: hoc-badge.svg + - uses: JamesIves/github-pages-deploy-action@v4.5.0 + with: + branch: gh-pages + folder: gh-pages + clean: false + if: github.ref == 'refs/heads/master'