generated from r-hyperspec/pkg-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from r-hyperspec/auto-update-test
Auto update test
- Loading branch information
Showing
7 changed files
with
64 additions
and
25 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
# READ-ONLY FILE | ||
# | ||
# Original file resides in r-hyperspec/pkg-skelton. | ||
# DO NOT EDIT in any other repo as these changes will be overwritten. | ||
# Edit at r-hyperspec/pkg-skelton, then push there and | ||
# this file will be deployed to the other repos. | ||
# | ||
|
||
*.html |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,31 +33,40 @@ on: | |
branches: | ||
- develop | ||
|
||
# - auto-update | ||
- auto-update-test | ||
|
||
name: Insert package (drat) | ||
|
||
jobs: | ||
drat: | ||
if: ${{ github.event.head_commit.message }} != "Automated file update from pkg-skeleton" | ||
|
||
runs-on: ${{ matrix.config.os }} | ||
|
||
name: ${{ matrix.config.os }} (R-${{ matrix.config.r }}) | ||
name: "drat: ${{ matrix.config.os }} (R-${{ matrix.config.r }})" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
# - {os: ubuntu-latest, r: 'release'} | ||
- {os: macOS-latest, r: 'release'} | ||
- {os: ubuntu-latest, r: 'release'} | ||
# - {os: macOS-latest, r: 'release'} | ||
|
||
env: | ||
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | ||
RSPM: ${{ matrix.config.rspm }} | ||
REPO: ${{ github.event.repository.name }} | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
CACHE_VERSION: 1 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Info | ||
run: | | ||
echo "GitHub actor: ${{ github.actor }}" | ||
- uses: r-lib/actions/setup-r@master | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
|
@@ -72,13 +81,13 @@ jobs: | |
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version") | ||
shell: Rscript {0} | ||
|
||
- name: Cache R packages | ||
- name: Restore R package cache | ||
# if: runner.os != 'Windows' | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.R_LIBS_USER }} | ||
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }} | ||
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1- | ||
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-${CACHE_VERSION}-${{ hashFiles('.github/depends.Rds') }} | ||
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-${CACHE_VERSION}- | ||
|
||
- name: Install system dependencies | ||
if: runner.os == 'Linux' | ||
|
@@ -116,7 +125,7 @@ jobs: | |
run: | | ||
git config --global url."https://${TOKEN}:[email protected]/".insteadOf "https://github.com/" | ||
git config --global user.email "${REPO}_Deploy_Bot@example.com" | ||
git config --global user.email "$actions@github.com" | ||
git config --global user.name "${REPO} Deploy Bot" | ||
- name: Drat -- clone r-hyperspec/pkg-repo | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,9 @@ on: | |
- master | ||
- develop | ||
|
||
# - auto-update | ||
- auto-update-test | ||
|
||
pull_request: | ||
branches: | ||
- release | ||
|
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