A
A
accountnujen2021-11-10 15:30:28
GitHub
accountnujen, 2021-11-10 15:30:28

How to work with variables in github workflow?

Hello. The documentation says something like this :

steps:
      - name: "Hello world when it's Monday"
        if: ${{ env.DAY_OF_WEEK == 'Mon' }}
        run: echo "Hello $FIRST_NAME $middle_name $Last_Name, today is Monday!"
        env:
          FIRST_NAME: Mona
          middle_name: The
          Last_Name: Octocat

I'm trying to drag this into my project in the image and likeness, but nothing comes out for me
run: Invoke-WebRequest -Headers @{"Authorization" = "token $GH_TOKEN"} -Uri https://raw.githubusercontent.com/$REPO_PATH/main/down.zip -OutFile 1.zip 
      env:
        GH_TOKEN: ${{ github.token }}
        REPO_PATH: ${{ github.repository }}

result
618bbb5d9d459663510630.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question