I want to write a text to file using GitHub Actions but I don't know how to do it.
I've tried:
def write(path, text):
    file = open(path, 'w')
    file.write(text)
    file.close()
but nothing has changed.
But if I run it on local machine it is still works.
 
     
    