Skip to content

a few changes in a playbook #32

a few changes in a playbook

a few changes in a playbook #32

Workflow file for this run

#----------------------------------
#--------GitHub Action-------------
#------By Rishat Mukhtarov---------
#----------------------------------
name: First_GitHub_Action
env:
prnt_msg: "Action Started Guys... commit 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_msg}}
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