diff --git a/.github/workflows/mutator.yaml b/.github/workflows/mutator.yaml index 67d83bf..c831b1f 100644 --- a/.github/workflows/mutator.yaml +++ b/.github/workflows/mutator.yaml @@ -27,7 +27,13 @@ jobs: - run: sudo ln -fs /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime - run: yarn - run: yarn test-ci + - name: Extract branch name + shell: bash + run: | + echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" \ + >> $GITHUB_OUTPUT + id: extract_branch - name: Mutator run mutator run: | yarn stryker-mutate --reporters dashboard \ - --dashboard.version ${{env.GITHUB_REF_NAME}} + --dashboard.version ${{ steps.extract_branch.outputs.branch }} diff --git a/README.md b/README.md index 539d121..6e0ce24 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Conventional Changelog](https://img.shields.io/badge/changelog-conventional-brightgreen.svg)](http://conventional-changelog.github.io) [![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version) [![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fclaytonsilva%2Fnodejs-hexagonal-boilerplate%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/claytonsilva/nodejs-hexagonal-boilerplate/main) -![gh_actions](https://github.com/claytonsilva/nodejs-hexagonal-boilerplate/actions/workflows/main.yml/badge.svg) +![gh_actions](https://github.com/claytonsilva/nodejs-hexagonal-boilerplate/actions/workflows/main.yaml/badge.svg) ## Inspiração