Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add option to disable package rebuilds and uploads #266

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/build-check-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ on:
required: false
type: string
default: "unit-test-report"
disable-package-rebuild-and-upload:
description: This will disable the package rebuild and upload step for versioned tags.
required: false
type: boolean
default: false

concurrency:
group: r-cmd-${{ inputs.concurrency-group }}-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -836,7 +841,8 @@ jobs:
if: >
(inputs.disable-unit-test-reports != 'true' ||
startsWith(github.ref, 'refs/tags/v')) &&
github.event_name != 'pull_request'
github.event_name != 'pull_request' &&
inputs.disable-package-rebuild-and-upload != 'true'
run: |
# Undo changes to DESCRIPTION and tests/testthat.R
git checkout DESCRIPTION
Expand All @@ -854,7 +860,9 @@ jobs:
working-directory: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}

- name: Upload package build ⤴
if: startsWith(github.ref, 'refs/tags/v')
if: >
startsWith(github.ref, 'refs/tags/v') &&
inputs.disable-package-rebuild-and-upload != 'true'
uses: actions/upload-artifact@v4
with:
path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}/${{ env.PKGBUILD }}
Expand Down
Loading