Skip to content

Commit

Permalink
fix: Move rebuild condition inside shell
Browse files Browse the repository at this point in the history
  • Loading branch information
cicdguy committed Nov 12, 2024
1 parent f8ba0be commit 51c45f8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build-check-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -841,8 +841,7 @@ jobs:
if: >
(inputs.disable-unit-test-reports != 'true' ||
startsWith(github.ref, 'refs/tags/v')) &&
github.event_name != 'pull_request' &&
inputs.disable-package-rebuild-and-upload != 'true'
github.event_name != 'pull_request'
run: |
# Undo changes to DESCRIPTION and tests/testthat.R
git checkout DESCRIPTION
Expand All @@ -855,7 +854,13 @@ jobs:
export $(tr '\n' ' ' < /tmp/dotenv.env)
}
fi
R CMD build .
if [ "${{ inputs.disable-package-rebuild-and-upload }}" != "true" ]
then {
R CMD build .
} else {
echo "🙅🏼‍♀️ Not rebuilding package for uploads"
}
fi
shell: bash
working-directory: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}

Expand Down

0 comments on commit 51c45f8

Please sign in to comment.