generated from jhudsl/OTTR_Template_Website
-
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.
- Loading branch information
Showing
47 changed files
with
125 additions
and
343 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
|
||
name: Refresh All | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
refresh-all: | ||
name: Refresh All | ||
runs-on: ubuntu-latest | ||
container: | ||
image: cansav09/metricminer | ||
|
||
yaml-check: | ||
name: Load user automation choices | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
# Use the yaml-env-action action. | ||
- name: Load environment from YAML | ||
uses: doughepi/[email protected] | ||
with: | ||
files: config_automation.yml # Pass a space-separated list of configuration files. Rightmost files take precedence. | ||
|
||
outputs: | ||
toggle_calendly: "${{ env.RENDER_CALENDLY }}" | ||
toggle_ga: "${{ env.RENDER_GA }}" | ||
toggle_github: "${{ env.RENDER_GITHUB }}" | ||
toggle_googleforms: "${{ env.RENDER_GOOGLEFORMS }}" | ||
toggle_slido: "${{ env.RENDER_SLIDO }}" | ||
toggle_youtube: "${{ env.RENDER_YOUTUBE }}" | ||
rendering_docker_image: "${{ env.RENDERING_DOCKER_IMAGE }}" | ||
|
||
render-calendly: | ||
name: Render Calendly | ||
needs: yaml-check | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{needs.yaml-check.outputs.rendering_docker_image}} | ||
if: ${{needs.yaml-check.outputs.toggle_calendly == 'yes'}} | ||
|
||
steps: | ||
- name: Refresh Google Analytics | ||
env: | ||
METRICMINER_CALENDLY: ${{ secrets.METRICMINER_CALENDLY }} | ||
run: Rscript refresh-data/refresh-calendly.R | ||
|
||
render-ga: | ||
name: Render Google Analytics | ||
needs: yaml-check | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{needs.yaml-check.outputs.rendering_docker_image}} | ||
if: ${{needs.yaml-check.outputs.toggle_ga == 'yes'}} | ||
|
||
steps: | ||
- name: Refresh Google Analytics | ||
env: | ||
METRICMINER_GOOGLE_ACCESS: ${{ secrets.METRICMINER_GOOGLE_ACCESS }} | ||
METRICMINER_GOOGLE_REFRESH: ${{ secrets.METRICMINER_GOOGLE_REFRESH }} | ||
run: Rscript refresh-data/refresh-ga.R | ||
|
||
render-github: | ||
name: Render Github | ||
needs: yaml-check | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{needs.yaml-check.outputs.rendering_docker_image}} | ||
if: ${{needs.yaml-check.outputs.toggle_github == 'yes'}} | ||
|
||
steps: | ||
- name: Refresh Github | ||
env: | ||
METRICMINER_GITHUB_PAT: ${{ secrets.METRICMINER_GITHUB_PAT }} | ||
METRICMINER_GOOGLE_ACCESS: ${{ secrets.METRICMINER_GOOGLE_ACCESS }} | ||
METRICMINER_GOOGLE_REFRESH: ${{ secrets.METRICMINER_GOOGLE_REFRESH }} | ||
run: Rscript refresh-data/refresh-github.R | ||
|
||
refresh-googleforms: | ||
name: Render Google Forms | ||
needs: yaml-check | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{needs.yaml-check.outputs.rendering_docker_image}} | ||
if: ${{needs.yaml-check.outputs.toggle_googleforms == 'yes'}} | ||
|
||
steps: | ||
- name: Refresh Google Forms | ||
env: | ||
METRICMINER_GOOGLE_ACCESS: ${{ secrets.METRICMINER_GOOGLE_ACCESS }} | ||
METRICMINER_GOOGLE_REFRESH: ${{ secrets.METRICMINER_GOOGLE_REFRESH }} | ||
run: Rscript refresh-data/refresh-googleforms.R | ||
|
||
refresh-slido: | ||
name: Render Slido | ||
needs: yaml-check | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{needs.yaml-check.outputs.rendering_docker_image}} | ||
if: ${{needs.yaml-check.outputs.toggle_slido == 'yes'}} | ||
|
||
steps: | ||
- name: Refresh Slido | ||
env: | ||
METRICMINER_GOOGLE_ACCESS: ${{ secrets.METRICMINER_GOOGLE_ACCESS }} | ||
METRICMINER_GOOGLE_REFRESH: ${{ secrets.METRICMINER_GOOGLE_REFRESH }} | ||
run: Rscript refresh-data/refresh-slido.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 |
---|---|---|
@@ -1,34 +1,25 @@ | ||
name: OTTR Template Website | ||
name: metricminer dashboard | ||
output_dir: '.' | ||
navbar: | ||
title: OTTR Web | ||
title: metricminer dashboard | ||
left: | ||
- text: Home | ||
href: index.html | ||
icon: fa-home | ||
- text: Setup | ||
href: setup.html | ||
- text: Hosting | ||
href: hosting.html | ||
- text: Editing | ||
href: editing.html | ||
- text: Style | ||
href: style.html | ||
- text: Git Actions | ||
href: git_actions.html | ||
- text: Docker | ||
href: docker.html | ||
- text: Contact | ||
href: contact.html | ||
icon: fa-envelope | ||
|
||
- text: Calendly | ||
href: calendly.html | ||
- text: GitHub | ||
href: github.html | ||
- text: Google Analytics | ||
href: googleanalytics.html | ||
- text: Slido | ||
href: slido.html | ||
- text: Youtube | ||
href: youtube.html | ||
|
||
output: | ||
html_document: | ||
theme: cosmo | ||
lib_dir: site_libs | ||
self_contained: no | ||
highlight: textmate | ||
css: styles.css | ||
includes: | ||
in_header: resources/header.html | ||
in_footer: resources/footer.html |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.