File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : GitHub Actions Demo
22run-name : ${{ github.actor }} is testing out GitHub Actions 🚀
3+
34on : [push]
5+
46jobs :
57 Explore-GitHub-Actions :
6- runs-on : ubuntu -latest
8+ runs-on : windows -latest
79 steps :
8- - run : echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
9- - run : echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
10- - run : echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
1110 - name : Check out repository code
1211 uses : actions/checkout@v5
13- - run : echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
14- - run : echo "🖥️ The workflow is now ready to test your code on the runner."
15- - name : List files in the repository
16- run : |
17- ls ${{ github.workspace }}
18- - run : echo "🍏 This job's status is ${{ job.status }}."
1912
13+ - name : Run commands in Bash
14+ shell : bash
15+ run : |
16+ echo "🎉 Triggered by ${{ github.event_name }}"
17+ echo "🐧 Runner OS: ${{ runner.os }}"
18+ echo "🔎 Branch: ${{ github.ref }}"
19+ ls
You can’t perform that action at this time.
0 commit comments