-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (39 loc) · 1.16 KB
/
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
41
42
43
44
45
# Candace Savonen Aug 2021
name: Sync Files
on:
release:
types:
- published
workflow_dispatch:
inputs:
prtag:
description: 'Tag to use?'
required: true
default: 'null'
jobs:
sync:
runs-on: ubuntu-latest
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: Get the version
id: get_tag
run: |
if [ github.event.inputs.prtag == 'null' ]
then
echo "version=$(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_OUTPUT
fi
if [ github.event.inputs.prtag != 'null' ]
then
echo "version=${{ github.event.inputs.prtag }}" >> $GITHUB_OUTPUT
fi
- name: Run Mechanics File Sync
uses: BetaHuhn/[email protected]
with:
GH_PAT: ${{ secrets.GH_PAT }}
COMMIT_BODY: release-${{ steps.get_tag.outputs.version }}