diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..377be01 --- /dev/null +++ b/.github/workflows/actions.yml @@ -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}}" \ No newline at end of file diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 36f7347..e60e4f3 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -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 \ No newline at end of file + import platform + print(platform.processor()) + shell: python \ No newline at end of file diff --git a/test.yml b/test.yml index 51efff2..14e154b 100644 --- a/test.yml +++ b/test.yml @@ -1 +1 @@ -{age: 28, name: Ali} +{age: 28, name: Aliii}