-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GitHub actions, and add an action that can update the SDK generator automatically once per week. We'll leave the schedule part disabled for the moment.
- Loading branch information
Showing
4 changed files
with
14,052 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Check for OpenAPI updates | ||
|
||
on: | ||
# schedule: | ||
# - cron: "0 0 * * 0" # Run once per week | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET Core @ Latest | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: "8.0.x" | ||
|
||
- name: Add the SDK Generator | ||
run: dotnet tool install SdkGenerator --global | ||
|
||
- name: Run dotnet pack | ||
run: SdkGenerator build -p ./sdk-config.json | ||
|
||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v6 | ||
- name: Check outputs | ||
if: ${{ steps.cpr.outputs.pull-request-number }} | ||
run: | | ||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | ||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" | ||
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"CompanyName": "ProjectManager.com", | ||
"AuthorName": "ProjectManager.com", | ||
"AuthorEmail": "[email protected]", | ||
"ProjectName": "ProjectManager API", | ||
"CopyrightHolder": "ProjectManager.com, Inc.", | ||
"ProjectStartYear": 2023, | ||
"SwaggerUrl": "https://api.projectmanager.com/api/swagger/ProjectManager.com,%20Inc%20API/swagger.json", | ||
"Environments": [ | ||
{ | ||
"Name": "production", | ||
"Url": "https://api.projectmanager.com", | ||
"Default": null | ||
} | ||
], | ||
"SwaggerSchemaFolder": "swagger", | ||
"GenericSuffixes": [ | ||
"AstroResult" | ||
], | ||
"IgnoredParameters": [ | ||
{ | ||
"Name": "X-Integration-Name", | ||
"Location": "Header" | ||
} | ||
], | ||
"IgnoredEndpoints": [ | ||
"Get Task Metadata", | ||
"TaskMetadata.GetTaskMetadata" | ||
], | ||
"SemverMode": 3, | ||
"Keywords": "projectmanager project management task tracking projects tasks", | ||
"Description": "Software development kit for the ProjectManager.com API.", | ||
"AuthenticationHelp": "", | ||
"ReleaseNotes": "https://learn.projectmanager.com/latest-releases", | ||
"VersionNumberUrl": "https://api.projectmanager.com/api/swagger/ProjectManager.com,%20Inc%20API/swagger.json", | ||
"VersionNumberRegex": "version\": \"(.*)\"", | ||
"CSharp": { | ||
"ModuleName": "ProjectManager.SDK", | ||
"ClassName": "ProjectManagerClient", | ||
"ResponseClass": "AstroResult", | ||
"Namespace": "ProjectManager.SDK", | ||
"GithubUrl": "https://github.com/projectmgr/projectmanager-sdk-csharp", | ||
"HandwrittenClasses": [ | ||
"AstroResult", | ||
"AstroError" | ||
] | ||
} | ||
} |
Oops, something went wrong.