Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix delete preview and update sync.yml #465

Merged
merged 2 commits into from
Feb 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 23 additions & 13 deletions .github/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,13 @@ group:
- source: .github/workflows/
dest: .github/workflows/
deleteOrphaned: true
exclude: |
send-updates.yml
test-send-updates.yml
starting-course.yml
- source: scripts/
dest: scripts/
deleteOrphaned: true
- source: .github/workflows/pull-request.yml
dest: .github/workflows/pull-request.yml
- source: .github/workflows/render-all.yml
dest: .github/workflows/render-all.yml
- source: .github/workflows/docker-build.yml
dest: .github/workflows/docker-build.yml
- source: .github/workflows/transfer-rendered-files.yml
dest: .github/workflows/transfer-rendered-files.yml
- source: .github/workflows/release-notes.yml
dest: .github/workflows/release-notes.yml
- source: .github/workflows/delete-preview.yml
dest: .github/workflows/delete-preview.yml
- source: .github/ISSUE_TEMPLATE/course-problem-report.md
dest: .github/ISSUE_TEMPLATE/course-problem-report.md
- source: .github/ISSUE_TEMPLATE/course-content-add.md
Expand Down Expand Up @@ -60,11 +52,29 @@ group:
tmm211/dsp-terra-mooc-test2
###ADD NEW REPO HERE following the format above#

### This is a custom group for this repo which doesn't want syncing on all the files ###
### These are custom groups for syncing -- not all files needs to be synced
- files:
- source: config_automation.yml
dest: config_automation.yml
- source: .github/workflows/pull-request.yml
dest: .github/workflows/pull-request.yml
- source: scripts/spell-check.R
dest: scripts/spell-check.R
repos: |
jhudsl/OTTR_Template_Website

- files:
- source: .github/workflows/delete-preview.yml
dest: .github/workflows/delete-preview.yml
- source: .github/workflows/send-updates.yml
dest: .github/workflows/send-updates.yml
- source: .github/workflows/test-send-updates.yml
dest: .github/workflows/test-send-updates.yml
- source: scripts/make_screenshots.R
dest: scripts/make_screenshots.R
- source: scripts/spell-check.R
dest: scripts/spell-check.R
- source: scripts/switch_sync_repo.R
dest: scripts/switch_sync_repo.R
repos: |
jhudsl/OTTR_Quizzes
6 changes: 6 additions & 0 deletions .github/workflows/delete-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
run: sleep 300s
shell: bash

# Check out current repository
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

# Delete the branch!
- name: Delete branch locally and remotely
run: |
Expand Down