-
Notifications
You must be signed in to change notification settings - Fork 11
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
73 changed files
with
7,163 additions
and
2,106 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
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,33 @@ | ||
name: 'TODO App' | ||
description: 'Runs TODO App' | ||
|
||
outputs: | ||
port: | ||
description: "Target port" | ||
value: "9000" | ||
cmd: | ||
description: "Command to run the target" | ||
value: ${{ steps.download.outputs.cmd }} | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Download Executable | ||
id: download | ||
shell: bash | ||
run: | | ||
if [ "$RUNNER_OS" == "Linux" ]; then | ||
EXECUTABLE=todoapp-linux-x64 | ||
CMD=./$EXECUTABLE | ||
elif [ "$RUNNER_OS" == "Windows" ]; then | ||
EXECUTABLE=todoapp-windows-x64.exe | ||
CMD=.\\$EXECUTABLE | ||
elif [ "$RUNNER_OS" == "macOS" ]; then | ||
EXECUTABLE=todoapp-darwin-x64 | ||
CMD=./$EXECUTABLE | ||
fi | ||
curl -fsSL https://github.com/NeuraLegion/go-todoapp-demo/releases/latest/download/$EXECUTABLE > ./$EXECUTABLE | ||
chmod +x ./$EXECUTABLE | ||
echo "cmd=$CMD" >> "$GITHUB_OUTPUT" |
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
Oops, something went wrong.