feat: Add YAML custom connector publishing (Docker stubbed) #1318
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Slash Command Dispatch | |
on: | |
issue_comment: | |
types: [created] | |
env: | |
AIRBYTE_ANALYTICS_ID: ${{ vars.AIRBYTE_ANALYTICS_ID }} | |
jobs: | |
slashCommandDispatch: | |
# Only allow slash commands on pull request (not on issues) | |
if: ${{ github.event.issue.pull_request }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Authenticate as GitHub App | |
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 | |
id: get-app-token | |
with: | |
owner: "airbytehq" | |
repositories: "PyAirbyte" | |
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }} | |
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }} | |
- name: Slash Command Dispatch | |
id: dispatch | |
uses: peter-evans/slash-command-dispatch@13bc09769d122a64f75aa5037256f6f2d78be8c4 # v4.0.0 | |
with: | |
repository: ${{ github.repository }} | |
token: ${{ steps.get-app-token.outputs.token }} | |
dispatch-type: workflow | |
issue-type: pull-request | |
commands: | | |
fix-pr | |
test-pr | |
poetry-lock | |
static-args: | | |
pr=${{ github.event.issue.number }} | |
comment-id=${{ github.event.comment.id }} | |
# Only run for users with 'write' permission on the main repository | |
permission: write | |
- name: Edit comment with error message | |
if: steps.dispatch.outputs.error-message | |
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0 | |
with: | |
comment-id: ${{ github.event.comment.id }} | |
body: | | |
> Error: ${{ steps.dispatch.outputs.error-message }} |