Score:0

Passing Variable between GHA steps

ru flag

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
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.