I'm trying to pass variables from one steps to another step in github action . Below doesn't work . Is there way to do it ?
jobs:
eks_delete_resources:
runs-on: code-default
defaults:
run:
shell: bash
steps:
- name: Fetching Resource Up for Deletion
id: id-fetch
run: |
echo "List SG"
export SG_LIST=$(aws ec2 describe-security-groups --filters Name=tag:aws:eks:cluster-name,Values=${{ inputs.eks_cluster_tag_name }} --query "SecurityGroups[*].{ID:GroupId}" | jq -r .[].ID)
continue-on-error: true
- name: Print Value
run: |
echo $SG_LIST
continue-on-error: true