22
33# Controls when the workflow will run
44on :
5- # Triggers the workflow on push or pull request events but only for the main branch
5+ # Triggers the workflow on push or pull request events but only for main
66 push :
77 branches : [ main ]
88 pull_request :
1111 # Allows you to run this workflow manually from the Actions tab
1212 workflow_dispatch :
1313
14- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+ # A workflow run consists of one or more jobs, run sequentially or in parallel
1515jobs :
1616 # This workflow contains a single job called "build"
1717 build :
1818 # The type of runner that the job will run on
1919 runs-on : ubuntu-latest
2020
2121 env :
22- STPATOOLS_VERSION : " 42e07abc5510f5864aa102aa7ae1e8349911a620"
22+ STPATOOLS_VER : " 42e07abc5510f5864aa102aa7ae1e8349911a620"
2323 STPATOOLS_REPO : " https://gitlab.com/CodethinkLabs/stpatools.git"
2424
25- # Steps represent a sequence of tasks that will be executed as part of the job
25+ # Steps represent a sequence of tasks to be executed as part of the job
2626 steps :
27- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
27+ # Checks-out your repo under $GITHUB_WORKSPACE, so your job can access it
2828 - uses : actions/checkout@v2
2929
3030 # Check that YAML files are well-formed
@@ -33,11 +33,11 @@ jobs:
3333
3434 # Install specific version of STPA tools from repo
3535 - name : Install STPA tools
36- run : pip3 install "git+${{env.STPATOOLS_REPO}}@${{env.STPATOOLS_VERSION }}"
36+ run : pip3 install "git+${{env.STPATOOLS_REPO}}@${{env.STPATOOLS_VER }}"
3737
3838 # Validate STPA files
3939 - name : Validate STPA files (STPA_DynMA)
4040 run : stpa-validate STPA_DynMA/*.yml
41-
41+
4242 - name : Validate STPA files
4343 run : stpa-validate stack-memory/*.yml
0 commit comments