diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 6cc2950..832b9f6 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -23,11 +23,15 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v4 + #- uses: actions/checkout@v4 # Runs a single command using the runners shell - name: Run a one-line script - run: ls -la + env: + envar: 'ABC' + run: echo $envar + - name: Run a one-line script + run: echo $envar # Runs a set of commands using the runners shell #- name: Run a multi-line script @@ -46,4 +50,6 @@ jobs: # Runs a single command using the runners shell - name: Run a one-line script - run: echo Hello, world! + run: echo "STEP_ENV_VAR=This is a step-level environment variable" >> $GITHUB_ENV + - name: Print step-level environment variable + run: echo "Step env var: $STEP_ENV_VAR"