Skip to content

Instantly share code, notes, and snippets.

@twyle
Created May 27, 2022 06:59
Show Gist options
  • Save twyle/086ff9ea9b9bc634be3109fa046701ac to your computer and use it in GitHub Desktop.
Save twyle/086ff9ea9b9bc634be3109fa046701ac to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
"""This module contains the code that executes the github action."""
import os
def main():
"""Greet user using the supplied name."""
my_input = os.getenv('INPUT_MYINPUT') or 'world'
my_output = f"Hello {my_input}"
print(f"::set-output name=MYOUTPUT::{my_output}")
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment