diff --git a/.github/workflows/bump_dev_version_tag_branch.yaml b/.github/workflows/bump_dev_version_tag_branch.yaml index 736d338..082b508 100644 --- a/.github/workflows/bump_dev_version_tag_branch.yaml +++ b/.github/workflows/bump_dev_version_tag_branch.yaml @@ -52,7 +52,7 @@ jobs: - name: Get package version from DESCRIPTION file and set as environment variable run: | - echo "PKG_VERSION=$(Rscript -e 'desc::desc_get_version()')" >> $GITHUB_ENV + echo "PKG_VERSION=$(Rscript -e 'cat(as.character(desc::desc_get_version()))')" >> $GITHUB_ENV shell: bash - uses: EndBug/add-and-commit@v9 @@ -61,5 +61,9 @@ jobs: message: '🤖 Bump version. [skip actions]' default_author: github_actions add: 'DESCRIPTION' - tag: 'v${{ env.PKG_VERSION }}' - tag_push: '--force' + + - uses: thejeff77/action-push-tag@v1.0.0 + if: ${{ success() }} + with: + tag: v${{ env.PKG_VERSION }} + force: true \ No newline at end of file diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index cbd8432..34daa2d 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -2,7 +2,10 @@ on: workflow_call: - + secrets: + CODECOV_TOKEN: + required: true + name: test-coverage permissions: read-all @@ -35,7 +38,7 @@ jobs: covr::to_cobertura(cov) shell: Rscript {0} - - uses: codecov/codecov-action@v4.5 + - uses: codecov/codecov-action@v4 with: fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }} file: ./cobertura.xml