Test Sync Files #112
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
# Candace Savonen Aug 2021 | |
name: Test Sync Files | |
on: | |
workflow_dispatch: | |
inputs: | |
repo: | |
description: 'What repo to test on e.g. jhudsl/OTTR_Template_Test' | |
required: true | |
default: 'jhudsl/OTTR_Template_Test' | |
jobs: | |
test-sync: | |
runs-on: ubuntu-latest | |
container: | |
image: jhudsl/base_ottr:main | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@master | |
- name: Login as jhudsl-robot | |
run: | | |
git config --global --add safe.directory $GITHUB_WORKSPACE | |
git config --global user.email "[email protected]" | |
git config --global user.name "jhudsl-robot" | |
- name: Set up test-sync.yml | |
run: | | |
cp .github/sync.yml .github/test-sync.yml | |
# Switch out repo argument | |
Rscript --vanilla .github/switch_sync_repo.R --repo ${{ github.event.inputs.repo }} | |
- name: Run Mechanics File Sync | |
uses: BetaHuhn/[email protected] | |
with: | |
GH_PAT: ${{ secrets.GH_PAT }} | |
COMMIT_BODY: "test-run" | |
CONFIG_PATH: .github/test-sync.yml |