Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slash cmd ref #4

Merged
merged 2 commits into from
Apr 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/build-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ on:
actor:
description: "The user who executed the slash command"
required: true
checkout-ref:
description: "The reference to pass to 'ref' to checkout action"
required: true
checkout-repository:
description: "The repository to pass to 'repository' to tcheckout action"
required: true
repository_dispatch:
types: [build-command]
jobs:
Expand Down Expand Up @@ -51,8 +57,8 @@ jobs:
- uses: actions/checkout@v3
with:
token: ${{ secrets.PAT }}
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
ref: ${{ github.event.client_payload.pull_request.head.ref }}
repository: ${{ github.event.inputs.checkout-repository }}
ref: ${{ github.event.inputs.checkout-ref }}
- name: Setup Python
uses: actions/[email protected]
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/slash-command-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
comment-id=${{ github.event.comment.id }}
issue-number=${{ github.event.issue.number }}
actor=${{ github.actor }}
checkout-ref=${{ github.event.pull_request.head.ref }}
checkout-repository=${{ github.event.pull_request.head.repo.full_name }}
- name: Edit comment with error message
if: steps.scd.outputs.error-message
uses: peter-evans/create-or-update-comment@v2
Expand Down