Download unzip commit #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main-Workflow | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
bump-dev-version: # only do that when actually merging in main/develop branch | |
if: github.event_name != 'pull_request' | |
uses: ./.github/workflows/bump-dev-version.yaml | |
secrets: inherit | |
download-and-unzip-package: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Unzip package | |
run: | | |
unzip -o /tmp/package.zip -d inst/lib > unzip_log.txt 2>&1 || (cat unzip_log.txt && exit 1) | |
- name: Display unzip log if failed | |
if: failure() | |
run: cat unzip_log.txt | |
- name: Commit changes | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add inst/lib | |
git commit -m "Add downloaded package" | |
git push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
R-CMD-Check: | |
if: ${{ always() }} | |
needs: [bump-dev-version] | |
uses: Open-Systems-Pharmacology/Workflows/.github/workflows/R-CMD-check-build.yml@main | |
with: | |
install-pksim: true | |
install-rClr: false | |
extra-packages: | | |
ospsuite.utils=github::Open-Systems-Pharmacology/OSPSuite.RUtils | |
tlf=github::Open-Systems-Pharmacology/TLF-Library | |
test-coverage: | |
if: ${{ always() }} | |
needs: [R-CMD-Check] | |
uses: Open-Systems-Pharmacology/Workflows/.github/workflows/test-pkg-and-coverage.yml@main | |
with: | |
install-pksim: true | |
install-rClr: false | |
extra-packages: | | |
ospsuite.utils=github::Open-Systems-Pharmacology/OSPSuite.RUtils | |
tlf=github::Open-Systems-Pharmacology/TLF-Library | |
pkgdown: | |
if: ${{ always() }} | |
needs: [R-CMD-Check] | |
uses: Open-Systems-Pharmacology/Workflows/.github/workflows/pkgdown.yml@main | |
with: | |
install-pksim: true | |
install-rClr: false | |
extra-packages: | |