Skip to content

Commit

Permalink
update the github action
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed Jul 31, 2024
1 parent 1643bdc commit b499d2c
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/registry-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
jobs:
update_registry_db:
runs-on: ubuntu-latest
environment: staging

steps:
- name: Checkout repository
Expand Down Expand Up @@ -46,19 +47,6 @@ jobs:
run: |
cat changed_files.json
# - name: Pseudocode for Next steps
# id: next_steps
# run: |
# echo 'Detect status - added/modified/removed files'
# echo 'for each removed connector, remove from registry db'
# echo 'for each added connector, create a stub in the registry db'
# echo 'for each modified connector:'
# echo ' * Download tgz'
# echo ' * Re-upload tgz'
# echo ' * Extract'
# echo ' * Build payload for API'
# echo ' * PUT to API (gql)'

- name: Setup Go
uses: actions/setup-go@v4
with:
Expand All @@ -67,7 +55,13 @@ jobs:
- name: Run registry automation program
env:
CHANGED_FILES_PATH: "changed_files.json"
PUBLICATION_ENV: "staging"
CONNECTOR_REGISTRY_GQL_URL: ${{ secrets.CONNECTOR_REGISTRY_GQL_URL }}
GCP_BUCKET_NAME: dev-connector-platform-registry
GCP_SERVICE_ACCOUNT_DETAILS: ${{ secrets.GCP_SERVICE_ACCOUNT_DETAILS }}
CONNECTOR_PUBICATION_KEY: ${{ secrets.CONNECTOR_PUBLICATION_KEY }}
run: |
echo "connector registry GQL URL is $CONNECTOR_REGISTRY_GQL_URL"
mv changed_files.json registry-automation/changed_files.json
cd registry-automation
go run main.go ci

0 comments on commit b499d2c

Please sign in to comment.