I have a step in a github workflow job that looks like this:
- name: Create a workflow-started comment uses: actions/github-script@v3 wi