Skip to content

Commit

Permalink
chore: Update Azure resource deployment workflow to use correct SQL c…
Browse files Browse the repository at this point in the history
…onnection string secret name
  • Loading branch information
leandromsft committed Jul 1, 2024
1 parent f38dc06 commit e9208e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/03-Deployment-Function.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@ jobs:
- name: Run SQL Scripts
uses: azure/sql-action@v2.2.1
with:
connection-string: ${{ secrets.AZURE_SQL_CONNECTION_STRING }}
connection-string: ${{ secrets.AZ_SQL_CONNECTION_STRING }}
path: 'my-sql-artifact/CreateTables.sql'
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ To deploy the API that receives the webhook payload, you can run the workflow [0

### Step 03 - Deploy the Azure Function

Create GitHub secrets for SQL Server Connection String (AZ_SQL_CONNECTION_STRING). created at **Step 01**.

To deploy the Azure Function, you can run the workflow [03-Deployment-Function.yml](.github/workflows/03-Deployment-Function.yml).

### Step 04 - Configure the GitHub Webhook
Expand All @@ -58,7 +60,7 @@ Create a GitHub Webhook to send the workflow_job and workflow_run events to the

To create the webhook, on Organization level, click on **Settings**, select the **Webhooks** menu, and click on the **Add webhook** button.

In the **Payload URL** field, enter the API endpoint created at [Step 02 - Deploy the API](#step-02---deploy-the-api).
In the **Payload URL** field, enter the API endpoint created at **Step 02**.

![WebHook Payload](docs/WebhookPayload.png)

Expand Down

0 comments on commit e9208e2

Please sign in to comment.