-
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 #52 from fhdsl/cansavvy/dummy-data
Creating dummy data and better classifying the data types returned by metricminer
- Loading branch information
Showing
58 changed files
with
969 additions
and
185 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ | |
^docs$ | ||
^pkgdown$ | ||
^inst/extdata/cached-secrets/* | ||
.Rprofile | ||
.Rprofile | ||
resources/* |
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
on: | ||
schedule: | ||
# - cron: '*/2 * * * *' | ||
|
||
jobs: | ||
write-data: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up R | ||
uses: r-lib/actions/setup-r@v2 | ||
|
||
- name: Install googlesheets4 | ||
uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
packages: | | ||
any::googlesheets4 | ||
- name: Install remotes | ||
run: | | ||
Rscript -e "install.packages('remotes')" | ||
- name: Install metricminer from Github | ||
run: | | ||
Rscript -e "remotes::install_github("fhdsl/metricminer")" | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Authorize metricminer | ||
env: | ||
METRICMINER_CALENDLY: ${{ secrets.METRICMINER_CALENDLY }} | ||
METRICMINER_GITHUB_PAT: ${{ secrets.METRICMINER_GITHUB_PAT }} | ||
METRICMINER_GOOGLE_ACCESS: ${{ secrets.METRICMINER_GOOGLE_ACCESS }} | ||
METRICMINER_GOOGLE_REFRESH: ${{ secrets.METRICMINER_GOOGLE_REFRESH }} | ||
run: | | ||
# Authorize Calendly | ||
auth_from_secret("calendly", token = Sys.getenv("METRICMINER_CALENDLY")) | ||
# Authorize GitHub | ||
auth_from_secret("github", token = Sys.getenv("METRICMINER_GITHUB_PAT")) | ||
# Authorize Google | ||
auth_from_secret("google", | ||
refresh_token = Sys.getenv("METRICMINER_GOOGLE_REFRESH"), | ||
access_token = Sys.getenv("METRICMINER_GOOGLE_ACCESS"), | ||
cache = TRUE | ||
) | ||
- name: Write data | ||
run: # Rscript -e 'source("R/write-data.R")' |
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 |
---|---|---|
|
@@ -12,3 +12,5 @@ inst/extdata/cached-secrets/* | |
testthat-problems.rds | ||
.Renviron | ||
inst/doc | ||
local_auth.R | ||
local_auth_2.R |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
.httr-oauth |
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.