Skip to content

Commit

Permalink
Update data and commit changesfix
Browse files Browse the repository at this point in the history
  • Loading branch information
njahn82 committed Jul 16, 2024
1 parent 4bc9518 commit bf6b667
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 551,752 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/update-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ jobs:
DATE=$(date +'%Y-%m-%d %H:%M:%S')
git add data/
git commit --allow-empty -m "Auto-update of the data package on $DATE" -a
- name: Update branch
if: env.result == '1'
run: |
git pull origin ${{ github.head_ref }}
git pull --rebase origin ${{ github.head_ref }}
- name: Push changes
if: env.result == '1'
Expand Down
24 changes: 12 additions & 12 deletions data-raw/jct_001_get_cr_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,20 @@ usethis::use_data(jct_hybrid_jns, overwrite = TRUE)
# # Cleaned and enriched version of OAM data
# # <https://doi.org/10.26165/JUELICH-DATA/VTQXLM>

# oam_hybrid_jns <- readr::read_csv("data-raw/oam_hybrid_jns.csv")
oam_hybrid_jns <- readr::read_csv("data-raw/oam_hybrid_jns.csv")

# # Upload to BQ
# oam_hybrid_jns_path <-
# bigrquery::bq_table("subugoe-collaborative", "hoaddata", "oam_hybrid_jns")

# if (bigrquery::bq_table_exists(oam_hybrid_jns_path)) {
# bigrquery::bq_table_delete(oam_hybrid_jns_path)
# }
# bigrquery::bq_table_upload(
# oam_hybrid_jns_path,
# oam_hybrid_jns
# )
# usethis::use_data(oam_hybrid_jns, overwrite = TRUE)
oam_hybrid_jns_path <-
bigrquery::bq_table("subugoe-collaborative", "hoaddata", "oam_hybrid_jns")

if (bigrquery::bq_table_exists(oam_hybrid_jns_path)) {
bigrquery::bq_table_delete(oam_hybrid_jns_path)
}
bigrquery::bq_table_upload(
oam_hybrid_jns_path,
oam_hybrid_jns
)
usethis::use_data(oam_hybrid_jns, overwrite = TRUE)

# # Combine both journal tables
# hybrid_jns <- oam_hybrid_jns |>
Expand Down
Loading

0 comments on commit bf6b667

Please sign in to comment.