Skip to content

Commit

Permalink
add github workflows for publishing ERDs
Browse files Browse the repository at this point in the history
  • Loading branch information
sherifnada committed Jun 8, 2022
1 parent f0cfaf6 commit c7a23c6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/actions/publish-connector-erd/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Publish Connector ERD
inputs:
connector:
description: connector_directory_name
required: true
runs:
using: "composite"
steps:
- name: Install dbdocs
run: sudo npm install -g dbdocs
- name: Check dbdocs
run: dbdocs
- name: Publish ERD
run: DBDOCS_TOKEN=${{ secrets.DBDOCS_TOKEN }} ./tools/erds/publish.sh ${{ inputs.connector_directory_name }}
6 changes: 6 additions & 0 deletions .github/workflows/publish-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ jobs:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_CONNECTOR_RELEASE_AUTH_TOKEN }}
SENTRY_ORG: airbyte-5j
SENTRY_PROJECT: airbyte-connectors
- name: Publish ERD
if: success()
id: publish-erd
uses: ./.github/actions/publish-connector-erd
with:
connector_directory_name: $(echo ${{ github.event.inputs.connector }} | cut -d"/" -f2)
- name: Publish ${{ github.event.inputs.connector }}
run: |
echo "$SPEC_CACHE_SERVICE_ACCOUNT_KEY" > spec_cache_key_file.json && docker login -u ${DOCKER_HUB_USERNAME} -p ${DOCKER_HUB_PASSWORD}
Expand Down
2 changes: 2 additions & 0 deletions tools/erds/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
echo "Hello world!"

0 comments on commit c7a23c6

Please sign in to comment.