From 60ad8924903cf6f064a786eff569b58bbf7f4460 Mon Sep 17 00:00:00 2001 From: Felix MIL Date: Wed, 24 Jul 2024 11:43:40 +0200 Subject: [PATCH 1/6] update codecov action to latest --- .github/workflows/test-coverage.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 78250f4..cbd8432 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -35,7 +35,7 @@ jobs: covr::to_cobertura(cov) shell: Rscript {0} - - uses: codecov/codecov-action@v4 + - uses: codecov/codecov-action@v4.5 with: fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }} file: ./cobertura.xml From 82d71f7419c1486993310ac96f8fb23a15b81a5e Mon Sep 17 00:00:00 2001 From: Felix MIL Date: Thu, 25 Jul 2024 09:26:52 +0200 Subject: [PATCH 2/6] Revert "update codecov action to latest" This reverts commit 60ad8924903cf6f064a786eff569b58bbf7f4460. --- .github/workflows/test-coverage.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index cbd8432..78250f4 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -35,7 +35,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 From 5b31e77ef7017cf52b1c577fdf968e2ff7b4c675 Mon Sep 17 00:00:00 2001 From: Felix MIL <34234913+Felixmil@users.noreply.github.com> Date: Thu, 25 Jul 2024 09:30:38 +0200 Subject: [PATCH 3/6] Update test-coverage.yaml --- .github/workflows/test-coverage.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index cbd8432..78250f4 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -35,7 +35,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 From efacd9c5f3c3b945bd2f91925314b16280fcc5d0 Mon Sep 17 00:00:00 2001 From: Felix MIL <34234913+Felixmil@users.noreply.github.com> Date: Thu, 25 Jul 2024 09:47:04 +0200 Subject: [PATCH 4/6] Update test-coverage.yaml --- .github/workflows/test-coverage.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 78250f4..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 From ef901a772aacf8502c5a53d227268eaee7356c6a Mon Sep 17 00:00:00 2001 From: Felix MIL Date: Thu, 25 Jul 2024 11:13:59 +0200 Subject: [PATCH 5/6] add tagging in separate step --- .github/workflows/bump_dev_version_tag_branch.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump_dev_version_tag_branch.yaml b/.github/workflows/bump_dev_version_tag_branch.yaml index 736d338..0143734 100644 --- a/.github/workflows/bump_dev_version_tag_branch.yaml +++ b/.github/workflows/bump_dev_version_tag_branch.yaml @@ -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 From 51bb88c1ae002a21acd950a7048c59a7bd6f4ece Mon Sep 17 00:00:00 2001 From: Felix MIL Date: Thu, 25 Jul 2024 11:25:19 +0200 Subject: [PATCH 6/6] fix version --- .github/workflows/bump_dev_version_tag_branch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump_dev_version_tag_branch.yaml b/.github/workflows/bump_dev_version_tag_branch.yaml index 0143734..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