Skip to content

manual-wf

manual-wf #9

Workflow file for this run

name: manual-wf
on:
workflow_dispatch:
jobs:
manual-flow:
runs-on: ubuntu-latest
steps:
- name: create file
if: ${{ github.event.inputs.input1 == '' }}
run: |
echo missing input file. creating file name_base64.txt
echo Nemo | base64 > ./name_base64.txt
- name: read file
id: read_file
run: |
echo "encoded_name=$(cat ./name_base64.txt)"
echo "encoded_name=$(cat ./name_base64.txt)" >> $GITHUB_OUTPUT
- name: decode name
id: decode_name
run: |
echo $GITHUB_OUTPUT
temp_name=${{steps.read_file.outputs.encode_name}}
echo $temp_name
echo "name=$(echo $temp_name | base64 --decode)" >> $GITHUB_OUTPUT
echo "result name: ${{steps.decode_name.outputs.name}}"