Files
Patrick Lee Scott 1aebff8907 feat: support yml or yaml (#427)
test: support yml or yaml

chore: lint
2025-11-14 15:54:18 +00:00

31 lines
985 B
YAML

name: Hello yaml Command
on:
repository_dispatch:
types: [hello-yaml-local-command]
jobs:
helloYaml:
runs-on: ubuntu-latest
steps:
- name: Add reaction
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
reactions: hooray
- name: Create URL to the run output
id: vars
run: echo "run-url=https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_OUTPUT
- name: Create comment
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.client_payload.github.payload.issue.number }}
body: |
Hello @${{ github.event.client_payload.github.actor }}!
This command was in a workflow file with the `.yaml` extension.
[Click here to see the command run output][1]
[1]: ${{ steps.vars.outputs.run-url }}