Skip to content

Transfer file

Transfer file #55

Workflow file for this run

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:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- 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"