Answer the question
In order to leave comments, you need to log in
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
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 }}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question