We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed5a4cb + aebacaf commit b39357eCopy full SHA for b39357e
1 file changed
entrypoint.py
@@ -7,6 +7,7 @@
7
# if you use pyaction:4.0.0 or higher as your base docker image.
8
9
import sys
10
+import os
11
12
if __name__ == "__main__" :
13
# Rename these variables to something meaningful
@@ -18,7 +19,9 @@
18
19
output1 = "Hello"
20
output2 = "World"
21
- # This is how you produce outputs.
22
+ # This is how you produce workflow outputs.
23
# Make sure corresponds to output variable names in action.yml
- print("::set-output name=output-one::" + output1)
24
- print("::set-output name=output-two::" + output2)
+ if "GITHUB_OUTPUT" in os.environ :
25
+ with open(os.environ["GITHUB_OUTPUT"], "a") as f :
26
+ print("{0}={1}".format("output-one", output1), file=f)
27
+ print("{0}={1}".format("output-two", output2), file=f)
0 commit comments