-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
6 changed files
with
60 additions
and
1 deletion.
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,14 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false # needed for <br/>-like breaks |
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,14 @@ | ||
on: [push] | ||
name: test-windows-latest | ||
jobs: | ||
test-action: | ||
name: Test | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: / | ||
with: | ||
uri: https://google.com/ | ||
filename: google.html | ||
retries: 3 |
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 @@ | ||
.DS_Store |
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 @@ | ||
Kyle Van Berendonck <kyle.vanberendonck@cuedo.com.au> |
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,29 @@ | ||
name: 'Invoke URI' | ||
description: 'Call a URI and return the result' | ||
author: foss@cuedo.com.au | ||
branding: | ||
icon: 'link-2' | ||
color: 'orange' | ||
inputs: | ||
uri: | ||
required: true | ||
description: "Invoke the specified URI" | ||
filename: | ||
description: "Save the output to the specified file" | ||
retries: | ||
description: "Retry the request if it fails" | ||
default: 3 | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Invoke URI (Linux) | ||
run: export DISPLAY="127.0.0.1:10.0" | ||
if: runner.os == 'Linux' | ||
- name: Invoke URI (Windows) | ||
env: | ||
URI: ${{ format('-Uri {0}', inputs.uri) }} | ||
FILENAME: ${{ inputs.filename > 0 && format(' -OutFile "{0}"') || '' }} | ||
RETRIES: ${{ inputs.retries > 0 && format(' -MaximumRetryCount {0}', inputs.retries) || '' }} | ||
run: | | ||
Invoke-WebRequest ${{env.URI}}${{env.FILENAME}}${{env.RETRIES}} | ||
if: runner.os == 'Windows' |