Skip to content

Commit a1bc03e

Browse files
author
gitName
committed
edits
1 parent d97d630 commit a1bc03e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/api-center/register-apis-github-actions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,18 +135,18 @@ To configure the workflow file:
135135
1. Copy and save the file under a name such as `register-api.yml`.
136136
1. Confirm or update the name of the repository folder (`APIs`) where you'll add the API definition file.
137137
1. Add this workflow file in the `/.github/workflows/` path in your GitHub repository.
138-
1. Set [variables](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables) in your repo for your API center name and resource group name in Azure.
138+
1. Set the [Actions variables](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables) `SERVICE_NAME` and `RESOURCE_GROUP` in your repo for your API center name and resource group name in Azure.
139139

140140
> [!TIP]
141-
> Using the [Visual Studio Code extension](build-register-apis-vscode-extension.md) for Azure API Center, you can generate a starting workflow file by running an extension command. In the Command Palette, select **Azure API Center: Register APIs**. Select **CI/CD** > **GitHub**. You can then modify the file for your scenario.
141+
> Using the [Visual Studio Code extension](build-register-apis-vscode-extension.md) for Azure API Center, you can generate a starting workflow file by running an extension command. In the Command Palette, select **Azure API Center: Register APIs**. Select **CI/CD** > **GitHub**. You can then modify or extend the file for your scenario.
142142

143143
```yml
144144
name: Register API Definition to Azure API Center
145145
on:
146146
pull_request:
147-
types: [closed]
147+
types: [ closed ]
148148
branches:
149-
- main
149+
- [ "main" ]
150150
paths:
151151
- "APIs/**/*.json"
152152
permissions:

0 commit comments

Comments
 (0)