Skip to content

Update second_action.yml #36

Update second_action.yml

Update second_action.yml #36

Workflow file for this run

#----------------------------------
#--------GitHub Action-------------
#------By Rishat Mukhtarov---------
#----------------------------------
name: Push_GitHub_Action
env:
prnt_msg1: "Action Started Guys... Workflow run sh code - ${{ github.sha }}"
global_var: "This is a global environment (playbook) variable"
on:
push:
branches:
- main
jobs:
testing:
runs-on: ubuntu-latest
env:
block_var: "This is a job environment (block) variable"
steps:
#
# - You can't set environment variables right at the beginning of a step (task)
#
- run: |
echo ${{env.prnt_msg1}}
echo " VAR1 = ${{env.global_var}}"
echo " VAR2 = ${{env.block_var}}"
echo " VAR3 = $task_var"
env:
task_var: "This is a step environment (tasks) variable"
# - uses: actions/checkout@v1
# - run: ls -la
# - run: python3 --version
# - run: python3 uravnenie.py
# - name: Put Msg Into File
# run: sudo echo "Action Started ..." >> /home/action.txt
# - name: List /home/ dir
# run: ls -la /home
# - name: Read /home/action.txt file
# run: cat /home/action.txt