Before posting this here, I explored about this topic in github actions documentation and other forums including SO. The problem statement is - I download a file from my reusable workflow. I keep this in reusable workflow because multiple projects need the same download function. I need to use this from my caller workflow. Is this even possible? If not possible, are there any options to address this usecase? My code snippet below:
- name: Download CSSP Secrets
id: cssp_secrets
run: |
az keyvault secret show --name $AZURE_SECRET_NAME --vault-name $AZURE_KEYVAULT_NAME --query value -o tsv > $CSSP_KEY_FILE_NAME
echo "ENV_CSSP_KEY_FILE_PATH=$GITHUB_WORKSPACE/$CSSP_KEY_FILE_NAME" >> $GITHUB_ENV
echo $GITHUB_ENV