Transfer file #45
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
name: Transfer file | |
# Controls when the workflow will run | |
on: | |
workflow_call: | |
inputs: | |
FILENAME: | |
required: true | |
type: string | |
workflow_dispatch: | |
inputs: | |
FILENAME: | |
required: true | |
type: string | |
jobs: | |
# This workflow contains a single job called "changed-files" | |
changed-files: | |
# The type of runner that the job will run on | |
runs-on: [self-hosted, fts3-client-production ] | |
environment: APPROVAL_REQUIRED | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: Transfer file with fts3-connector | |
run: | | |
echo "Calling with ${{ inputs.FILENAME || github.event.inputs.FILENAME }}" | |
curl -H "X-AUTH-HEADER: ${{ secrets.FTS3_CLIENT_API_KEY }}" -H "Content-Type: application/json" -X POST -d @${{ inputs.FILENAME || github.event.inputs.FILENAME }} "${{ vars.FTS3_CLIENT_ENDPOINT }}/transfer" |