Skip to content

Commit

Permalink
Make artifact name containing package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Felixmil committed Jul 25, 2024
1 parent af3784a commit 4cb3525
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/R-CMD-check-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:

- name: Get package package and R versions and store in environment
run: |
echo "PKG_NAME=$(Rscript -e 'cat(pkgload::pkg_name())')" >> $GITHUB_ENV
echo "PKG_VERSION=$(Rscript -e 'cat(as.character(desc::desc_get_version()))')" >> $GITHUB_ENV
echo "R_VERSION=$(Rscript -e 'cat(R.version$major, R.version$minor, sep = ".")')" >> $GITHUB_ENV
shell: bash
Expand All @@ -64,5 +65,5 @@ jobs:
if: ${{ success() }}
uses: actions/upload-artifact@v4
with:
name: ospsuite-v${{ env.PKG_VERSION }}-${{runner.os}}-r_${{ env.R_VERSION }}
name: {{ env.PKG_NAME }}-v${{ env.PKG_VERSION }}-${{runner.os}}-r_${{ env.R_VERSION }}
path: ${{ runner.temp }}/built_package/*

0 comments on commit 4cb3525

Please sign in to comment.