-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1.13 KB
/
test-send-updates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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 github actions bot
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- 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