diff --git a/.github/actions/action.yml b/.github/actions/action.yml deleted file mode 100644 index 99ce6f1..0000000 --- a/.github/actions/action.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: "Hello World" -description: "Greet someone" -inputs: - who-to-greet: # id of input - description: "Who to greet" - required: true - default: "World" -outputs: - random-number: - description: "Random number" - value: ${{ steps.random-number-generator.outputs.random-id }} -runs: - using: "composite" - steps: - - run: echo Hello ${{ inputs.who-to-greet }}. - shell: bash - - id: random-number-generator - run: echo "::set-output name=random-id::$(echo $RANDOM)" - shell: bash - - id: get-variable - run: echo github.action_path is ${{github.action_path}} - shell: bash - - name: copy files - run: cp ${{ github.action_path }}/module.ps1 . # share script to user - shell: bash - - run: ${{ github.action_path }}/goodbye.sh - shell: bash diff --git a/.github/actions/goodbye.sh b/.github/actions/goodbye.sh deleted file mode 100755 index 6521ce5..0000000 --- a/.github/actions/goodbye.sh +++ /dev/null @@ -1 +0,0 @@ -echo "Goodbye" \ No newline at end of file diff --git a/.github/actions/module.ps1 b/.github/actions/module.ps1 deleted file mode 100644 index ec95797..0000000 --- a/.github/actions/module.ps1 +++ /dev/null @@ -1,11 +0,0 @@ -function Show-Calendar { - Write-Host "output - Show-Calendar" -} - -function Show-Calendar2 { - Write-Host "output - Show-Calendar2" -} - -function Show-Calendar3 { - Write-Host "output - Show-Calendar3" -} \ No newline at end of file diff --git a/.github/workflows/shell.yml b/.github/workflows/shell.yml deleted file mode 100644 index a5f4b10..0000000 --- a/.github/workflows/shell.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: shell-test - -on: - workflow_dispatch: - branches: - - main - -jobs: - shell-test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Run a multi-line script - run: | - echo github.action_path is ${{github.action_path}} - echo "Run a multi-line script" - - id: foo - uses: ./.github/actions - with: - who-to-greet: "Mona the Octocat" - - run: echo random-number ${{ steps.foo.outputs.random-number }} - shell: bash - - run: ls -al - shell: bash - - name: show dir - shell: bash - run: | - sudo apt install tree - tree -al . - - name: run pwsh - shell: pwsh - run: | - . ./module.ps1 - Show-Calendar - Show-Calendar3 - Show-Calendar2