Skip to content
25 changes: 25 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Actions Workflow

on: [push, pull_request]

jobs:
run-github-actions:
runs-on: ubuntu-latest
steps:
- name: List Files
run: |
pwd
ls
- name: Checkout
uses: actions/checkout@v1
- name: List Files After
run: |
pwd
ls
- name: Simple JS Action
id: greet
uses: actions/hello-world-javascript-action@v1
with:
who-to-greet: John
- name: Log Greeting Time
run: echo "${{steps.greet.outputs.time}}"
17 changes: 11 additions & 6 deletions .github/workflows/simple.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: Shell Commands
name: Shell Commands

on: [push]

jobs:
run-shell-command:
run-shell-commands:
runs-on: ubuntu-latest
steps:
steps:
- name: echo a string
run: echo "Hello World"
- name: multiline script
- name: multiline script
run: |
node -v
npm -v
- name: python command
run: |
node -v
npm -v
import platform
print(platform.processor())
shell: python
2 changes: 1 addition & 1 deletion test.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{age: 28, name: Ali}
{age: 28, name: Aliii}