From 0eecffbf5e67333d3ace4f8ca9c2feae6e7cdacd Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 1 Oct 2021 14:15:46 +0000 Subject: [PATCH] Template cleanup --- .../course-template-feature-request.md | 20 ----- .../course-template-problem-report.md | 32 ------- .github/sync.yml | 46 ---------- .../downstream-mechanics-updates.yml | 26 ------ .github/workflows/starting-course.yml | 83 ------------------- 5 files changed, 207 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/course-template-feature-request.md delete mode 100644 .github/ISSUE_TEMPLATE/course-template-problem-report.md delete mode 100755 .github/sync.yml delete mode 100644 .github/workflows/downstream-mechanics-updates.yml delete mode 100644 .github/workflows/starting-course.yml diff --git a/.github/ISSUE_TEMPLATE/course-template-feature-request.md b/.github/ISSUE_TEMPLATE/course-template-feature-request.md deleted file mode 100644 index b82da8a..0000000 --- a/.github/ISSUE_TEMPLATE/course-template-feature-request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: Course Template Feature Request -about: Suggest an idea for the course templates -title: '' -labels: '' -assignees: cansavvy - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/course-template-problem-report.md b/.github/ISSUE_TEMPLATE/course-template-problem-report.md deleted file mode 100644 index 7ee24d9..0000000 --- a/.github/ISSUE_TEMPLATE/course-template-problem-report.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -name: Course Template Problem Report -about: Create a report to help improve the template and its documentation -title: problem -labels: bug -assignees: cansavvy - ---- - -**Describe what is not working with the template or is unclear in the documentation** -A clear and concise description of what the bug is. - -**Please link to the specific course repository you are working on** - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Github actions links** -If applicable please link to the Github actions that has failed - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Additional context** -Add any other context about the problem here. diff --git a/.github/sync.yml b/.github/sync.yml deleted file mode 100755 index 2765317..0000000 --- a/.github/sync.yml +++ /dev/null @@ -1,46 +0,0 @@ -# Candace Savonen Aug 2021 -# For info on how to update this file see: /~https://github.com/marketplace/actions/repo-file-sync-action#%EF%B8%8F-sync-configuration - -group: - # Repositories to recieve changes - repos: | - jhudsl/Documentation_and_Usability - jhudsl/Informatics_Research_Leadership - jhudsl/Data_Management - jhudsl/AnVIL_Book_Getting_Started - jhudsl/AnVIL_Book_Teacher_Guide - jhudsl/Reproducibility_in_Cancer_Informatics - #ADD NEW REPO HERE following the format above# - files: - - source: .github/workflows/render-bookdown.yml - dest: .github/workflows/render-bookdown.yml - - source: .github/workflows/docker-build-test.yml - dest: .github/workflows/docker-build-test.yml - - source: .github/workflows/transfer-rendered-files.yml - dest: .github/workflows/transfer-rendered-files.yml - - source: .github/workflows/style-and-sp-check.yml - dest: .github/workflows/style-and-sp-check.yml - - source: .github/workflows/url-checker.yml - dest: .github/workflows/url-checker.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/ - dest: .github/ISSUE_TEMPLATE/ - - source: scripts/ - dest: scripts/ - -###### TO ADD NEW REPOSITORY USE THIS FORMAT; Feel free to add/drop files that -# you specifically would like synced (or not). -# -# # Repositories to receive changes -# repos: | -# org/repo_name -# # Files which should be updated -# - source: .github/workflows/ - # dest: .github/workflows/ - # - source: scripts/ - # dest: scripts/ - # - source: docker/ - # dest: docker/ diff --git a/.github/workflows/downstream-mechanics-updates.yml b/.github/workflows/downstream-mechanics-updates.yml deleted file mode 100644 index c0e3349..0000000 --- a/.github/workflows/downstream-mechanics-updates.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Candace Savonen Aug 2021 - -name: Sync Files -on: - workflow_dispatch: - release: - types: - - created - -jobs: - sync: - runs-on: ubuntu-latest - steps: - - name: Checkout Repository - uses: actions/checkout@master - - - name: Get the version - id: get_version - run: | - echo ::set-output name=version::$(echo $GITHUB_REF | cut -d / -f 3) - - - name: Run Mechanics File Sync - uses: BetaHuhn/repo-file-sync-action@v1 - with: - GH_PAT: ${{ secrets.GH_PAT }} - COMMIT_BODY: release-${{ steps.get_version.outputs.version }} diff --git a/.github/workflows/starting-course.yml b/.github/workflows/starting-course.yml deleted file mode 100644 index 3e965cf..0000000 --- a/.github/workflows/starting-course.yml +++ /dev/null @@ -1,83 +0,0 @@ -# Code adapted from /~https://github.com/JetBrains/intellij-platform-plugin-template/blob/deb171483598ee8a5d7621154db880e87b4db4ef/.github/workflows/template-cleanup.yml -# by Candace Savonen for this repository. - -name: Starting a new course -on: - push: - branches: - - main - workflow_dispatch: - -jobs: - # Run cleaning process only if workflow is triggered by not being in the Bookdown template anymore - template-cleanup: - name: Template Cleanup - runs-on: ubuntu-latest - if: github.event.repository.name != 'DaSL_Course_Template_Bookdown' - steps: - - # Check out current repository - - name: Fetch current branch - uses: actions/checkout@v2 - -##### Filing issues! - - # Issue for what repository settings need to be set - - name: New Course - Set Repository Settings - uses: peter-evans/create-issue-from-file@v2.3.2 - with: - title: New Course - Set Repository Settings - content-filepath: .github/automatic-issues/set-repo-settings.md - labels: automated training issue - - # Issue for what needs to be edited - - name: New Course - Templates to Edit - uses: peter-evans/create-issue-from-file@v2.3.2 - with: - title: New Course - Templates to Edit - content-filepath: .github/automatic-issues/templates-to-edit.md - labels: automated training issue - - # Issue for what github secrets that need to be set - - name: New Course - Set Github Secrets - uses: peter-evans/create-issue-from-file@v2.3.2 - with: - title: New Course - Set Github Secrets - content-filepath: .github/automatic-issues/git-secrets.md - labels: automated training issue - - # Issue for how to enroll repo for updates - - name: New Course - Template Update Enrollment - uses: peter-evans/create-issue-from-file@v2.3.2 - with: - title: New Course - Template Update Enrollment - content-filepath: .github/automatic-issues/update-enrollment.md - labels: automated training issue - -##### Delete Template-specific files that aren't needed for new courses - - # Cleanup Template-specific bits - - name: Cleanup - run: | - # Cleanup - rm -rf \ - .github/workflows/downstream-mechanics-updates.yml \ - .github/sync.yml \ - .github/workflows/starting-course.yml \ - .github/ISSUE_TEMPLATE/course-template-problem-report.md \ - .github/ISSUE_TEMPLATE/course-template-feature-request.md - - # Commit modified files - - name: Commit deleted files - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add . - git commit -m "Template cleanup" - - # Push changes - - name: Push changes - uses: ad-m/github-push-action@master - with: - branch: main - github_token: ${{ secrets.GH_PAT }}