Skip to content

Commit

Permalink
patch: fixing merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
alan committed Oct 26, 2023
1 parent 69ac08e commit ec721a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 50 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/hacim.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,13 @@
name: build_vdh_dashboard
on:
<<<<<<< HEAD
# schedule:
# - cron: '0 21 * * 2,5' # Run on Tuesday and Friday 9pm UTC (5pm EST)
=======
>>>>>>> ae04b738c7f88679aa0f548c6cdafa7cb334e95d
push:
branches:
- main
pull_request:
branches:
- main
<<<<<<< HEAD

# Cacnel previous runs if a new push is sent
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
generate-dashboard:
# Don't run if a pull request but not closed
if: github.event_name == 'schedule' || ((github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == 'true') || github.event_name == 'push')
=======
jobs:
generate-dashboard:
>>>>>>> ae04b738c7f88679aa0f548c6cdafa7cb334e95d
runs-on: ubuntu-latest
permissions:
id-token: write
Expand All @@ -43,13 +25,10 @@ jobs:
with:
repository: uva-bi-sdad/social_data_commons
path: 'parent/social_data_commons'
<<<<<<< HEAD
=======
- uses: actions/checkout@main
with:
repository: uva-bi-sdad/community_example
path: 'parent/community_example'
>>>>>>> ae04b738c7f88679aa0f548c6cdafa7cb334e95d
- name: Run tree
run: |
tree ..
Expand All @@ -65,15 +44,9 @@ jobs:
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/parent/social_data_commons/repos
<<<<<<< HEAD
key: ${{ runner.os }}-repos
restore-keys: |
${{ runner.os }}-repos
=======
key: ${{ runner.os }}-repos-${{ hashFiles('**/parent/social_data_commons/repos') }}
restore-keys: |
${{ runner.os }}-repos-
>>>>>>> ae04b738c7f88679aa0f548c6cdafa7cb334e95d
- run: echo "💡 The ${{ github.repository }} repository have been cloned to the runner."
- name: Set up "data commons"
working-directory: ${{ github.workspace }}/parent/social_data_commons
Expand All @@ -85,13 +58,6 @@ jobs:
install.packages('remotes')
remotes::install_github('uva-bi-sdad/community')
source("build.R")
<<<<<<< HEAD
datacommons_view(
"../social_data_commons", "${{ github.event.repository.name }}",
metadata = entities, entity_info = NULL
)
=======
>>>>>>> ae04b738c7f88679aa0f548c6cdafa7cb334e95d
renv::snapshot()
- name: build ${{ github.event.repository.name }}
working-directory: ${{ github.workspace }}/parent/${{ github.event.repository.name }}
Expand All @@ -107,11 +73,7 @@ jobs:
- name: List files
run: |
ls -la
<<<<<<< HEAD
- name: Commit files # Commit changes. You need to do this so child sites work...
=======
- name: Commit files # Commit changes
>>>>>>> ae04b738c7f88679aa0f548c6cdafa7cb334e95d
working-directory: parent/${{ github.event.repository.name }}
run: |
ls -la
Expand Down
13 changes: 1 addition & 12 deletions build.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
library(community)

<<<<<<< HEAD

data_add(
c(
district = "health_district.csv.xz",
Expand All @@ -20,17 +20,6 @@ data_add(
),
dir = "./docs/data",
clean = TRUE
=======
# make copy (could be "uva-bi-sdad/community_example" to get from repo)
site_make_child("../community_example", "../vdh_rural_health_site", include = "docs/data/measure_info.json")

# build site
site_build(
"../vdh_rural_health_site", serve = TRUE, aggregate = TRUE,
parent = "https://uva-bi-sdad.github.io/community_example/",
endpoint = "https://vdh-data-commons.netlify.app/api",
tag_id = "G-WSQPEF0573"
>>>>>>> ae04b738c7f88679aa0f548c6cdafa7cb334e95d
)

# # clone/pull the data repositories
Expand Down

0 comments on commit ec721a5

Please sign in to comment.