-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a47bd4a
commit 5b6d52c
Showing
6 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
inputs: | ||
name: | ||
description: 'Your name' | ||
default: 'No name provided' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- run: echo Hello ${{ inputs.name }}. | ||
shell: bash | ||
- run: echo "Nice to meet you!" | ||
shell: pwsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
name: Tests the action | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
run_action: | ||
runs-on: ubuntu-latest | ||
name: Run action | ||
steps: | ||
- id: yay | ||
uses: luchihoratiu/debug-via-ssh@dev | ||
with: | ||
SSH_PASS: ${{ secrets.SSH_PASS }} | ||
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }} | ||
- name: Disable workflow commands | ||
run: | | ||
echo '::warning:: This is a warning message, to demonstrate that commands are being processed.' | ||
stopMarker=$(uuidgen) | ||
echo "::stop-commands::$stopMarker" | ||
echo '::warning:: This will NOT be rendered as a warning, because stop-commands has been invoked.' | ||
echo "::$stopMarker::" | ||
echo '::warning:: This is a warning again, because stop-commands has been turned off.' | ||
echo "### Hello world! :rocket:" >> $GITHUB_STEP_SUMMARY | ||
# - name: sleep | ||
# run: | | ||
# no="${{ steps.yay.outputs.ssh_address_bad }}" | ||
# echo $no | ||
# yes="${{ steps.yay.outputs.ssh_address_good }}" | ||
# echo $yes | ||
# echo "This is the lead in sentence for the list" >> $GITHUB_STEP_SUMMARY | ||
# echo "" >> $GITHUB_STEP_SUMMARY # this is a blank line | ||
# echo "- Lets add a bullet point" >> $GITHUB_STEP_SUMMARY | ||
# echo "- Lets add a second bullet point" >> $GITHUB_STEP_SUMMARY | ||
# echo "- How about a third one?" >> $GITHUB_STEP_SUMMARY | ||
|
||
# jobs: | ||
- name: Run generic tests | ||
uses: luchihoratiu/debug-via-ssh/.github/tests/generic_tests@dev | ||
with: | ||
name: OctoCat | ||
testing: | ||
uses: luchihoratiu/debug-via-ssh/.github/workflows/generic_tests.yml@dev | ||
with: | ||
os: Ubuntu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Generic tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
os: | ||
description: Operating system | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
generic_tests: | ||
name: Generic tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run debug-via-ssh | ||
id: dvs | ||
uses: luchihoratiu/debug-via-ssh@dev | ||
with: | ||
SSH_PASS: ${{ secrets.SSH_PASS }} | ||
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }} | ||
- name: Get address | ||
run: | | ||
echo ${{steps.dvs.outputs.ssh_address}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Write-Output "This works with *.ps1 script!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
echo "This works with *.sh script!" |