Added Custom Docker Action which prints fibonacci

This commit is contained in:
2023-07-27 22:22:23 +02:00
parent 2c1e7b4ed2
commit 45ec9ddd11
24 changed files with 8695 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import os
def run():
input_iterations = os.environ['INPUT_ITERATIONS']
current_number = 1
last_number = 0
for _ in range(input_iterations):
print(current_number)
temp = current_number
current_number = current_number + last_number
last_number = temp
with open(os.environ['GITHUB_OUTPUT'], 'a') as gh_output:
print(f'lastNumber={last_number}', file=gh_output)
if __name__ == '__main__':
run()