+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..4dafca0
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..84721b8
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/sarthi.iml b/.idea/sarthi.iml
new file mode 100644
index 0000000..8a05c6e
--- /dev/null
+++ b/.idea/sarthi.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..92e8c07
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,11 @@
+# setting the base-image to alpine
+FROM python:3-slim
+
+# importing the action
+COPY . /action
+
+# installing the requirements
+RUN pip install -U pip -r /action/requirements.txt
+
+# running the main.py file
+CMD [ "python", "/action/main.py" ]
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..26441fd
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,8 @@
+The MIT License (MIT)
+Copyright (c) 2023, Tushar Gupta
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e51ea0b
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+## Sarthi
+
+Easy to setup Docker based empheral previews!
+
+### Usage
+```yml
+example usage..
+```
+
+### License
+This action is licensed under some specific terms. Check [here](LICENSE) for more information.
diff --git a/action.yml b/action.yml
new file mode 100644
index 0000000..e1507c6
--- /dev/null
+++ b/action.yml
@@ -0,0 +1,23 @@
+name: Sarthi
+description: Easy to setup Docker based empheral previews!
+author: Tushar Gupta
+
+branding:
+ icon: check
+ color: blue
+
+runs:
+ using: docker
+ image: Dockerfile
+
+# == inputs and outputs ==
+
+inputs:
+ name:
+ required: false
+ description: the person/thing you want to greet
+ default: World
+
+outputs:
+ phrase:
+ description: output variable
diff --git a/actions/__init__.py b/actions/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/actions/io.py b/actions/io.py
new file mode 100644
index 0000000..a514c11
--- /dev/null
+++ b/actions/io.py
@@ -0,0 +1,23 @@
+import os
+from typing import Dict
+
+BUFFER_PATH = os.environ["GITHUB_OUTPUT"]
+
+
+def write_to_output(context: Dict[str, str]) -> None:
+ """writes the keys (as variables) and values (as values) to the output buffer
+
+ Args:
+ context: variables and values
+
+ Examples:
+ In your project, use this function like:
+
+ >>> write_to_output({"name": "John", ...})
+
+ ``name`` will be the variable name and ``John`` is the value.
+ """
+
+ with open(BUFFER_PATH, "a") as _buffer:
+ for var, val in context.items():
+ _buffer.write(f"{var}={val}\r\n")
diff --git a/main.py b/main.py
new file mode 100644
index 0000000..68ac9f2
--- /dev/null
+++ b/main.py
@@ -0,0 +1,25 @@
+import os
+import sys
+from typing import List
+
+from actions import io
+
+
+def main(args: List[str]) -> None:
+ """main function
+
+ Args:
+ args: STDIN arguments
+ """
+
+ # now you can access the inputs like:
+ # f"Hello {os.environ["INPUT_NAME"]}"
+
+ # you can write to output like:
+ # io.write_to_output({var: val, ...})
+
+ pass
+
+
+if __name__ == "__main__":
+ main(sys.argv[1:])
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..e69de29