-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 933 Bytes
/
Copy pathlearn-github-actions.yml
File metadata and controls
38 lines (33 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: learn-github-actions
run-name: ${{ github.actor }} is learning github actions(CI)
on:
push:
branches:
- github_flow_attempt
jobs:
Check-Job-Status:
runs-on: ubuntu-latest
steps:
- name: print job status
run: echo "Job status is ${{job.status}} - exporting to output log file "
Bash_Section:
runs-on: ubuntu-latest
steps:
- name: Run my bash commands
run: |
pwd
echo "The job status is ${{job.status}} " > output.log
echo "export complete"
- name: Upload output file
uses: actions/upload-artifact@v3
with:
name: output-log-file
path: output.log
Check-Out-Exec:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v2
with:
repositiory: 'Reece-elder/M1-Demo'
run: python $GITHUB_WORKSPACE/script.py