Skip to content

Sync Files

Sync Files #26

Workflow file for this run

# 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@v4
- 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 }}