-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
246 changed files
with
20,025 additions
and
1 deletion.
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,17 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "nuget" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" | ||
groups: | ||
all: | ||
patterns: | ||
- "*" | ||
ignore: | ||
- dependency-name: Microsoft.CodeAnalysis.CSharp |
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,39 @@ | ||
name: Auto-approve and auto-merge bot pull requests | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
auto-merge: | ||
runs-on: ubuntu-latest | ||
if: ${{ (github.actor == 'dependabot[bot]' || github.actor == 'HavenDV') && github.repository_owner == 'tryAGI' }} | ||
steps: | ||
- name: Dependabot metadata | ||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
id: metadata | ||
uses: dependabot/fetch-metadata@0fb21704c18a42ce5aa8d720ea4b912f5e6babef | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Show sender | ||
run: echo ${{ github.event.pull_request.sender }} | ||
|
||
- name: Show triggering_actor | ||
run: echo ${{ github.triggering_actor }} | ||
|
||
- name: Approve a PR | ||
run: gh pr review --approve "$PR_URL" | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Enable auto-merge | ||
run: gh pr merge --auto --merge "$PR_URL" | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,63 @@ | ||
name: Opens a new PR if there are OpenAPI updates | ||
on: | ||
schedule: | ||
- cron: '0 */3 * * *' | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
actions: write | ||
|
||
jobs: | ||
check-openapi-updates: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Git user | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "github-actions[bot]" | ||
- name: Generate branch name | ||
id: branch | ||
run: echo "branch_name=bot/update-openapi_$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT | ||
|
||
- name: Create branch | ||
run: | | ||
git checkout -b ${{ steps.branch.outputs.branch_name }} origin/main | ||
git rebase main | ||
- name: Generate code | ||
run: | | ||
cd src/libs/DeepInfra | ||
chmod +x ./generate.sh | ||
./generate.sh | ||
- name: Check for changes | ||
id: changes | ||
run: | | ||
CHANGED=$(git diff --name-only) | ||
if [ -z "$CHANGED" ]; then | ||
echo "has_changes=false" >> $GITHUB_OUTPUT | ||
else | ||
echo "has_changes=true" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Push changes | ||
if: steps.changes.outputs.has_changes == 'true' | ||
run: | | ||
git add . | ||
git commit -m "feat: Updated OpenAPI spec" | ||
git push --force-with-lease -u origin ${{ steps.branch.outputs.branch_name }} | ||
- name: Wait for 15 seconds | ||
if: steps.changes.outputs.has_changes == 'true' | ||
run: sleep 15 | ||
|
||
- name: Create pull request | ||
if: steps.changes.outputs.has_changes == 'true' | ||
run: gh pr create -B main -H ${{ steps.branch.outputs.branch_name }} --title 'feat:Updated OpenAPI spec' --body 'Created by Github Actions' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }} |
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,19 @@ | ||
name: Build, test and publish | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- v** | ||
|
||
jobs: | ||
build-test-publish: | ||
name: Build, test and publish | ||
uses: HavenDV/workflows/.github/workflows/dotnet_build-test-publish.yml@main | ||
with: | ||
generate-build-number: false | ||
conventional-commits-publish-conditions: false | ||
enable-caching: false | ||
additional-test-arguments: '--logger GitHubActions' | ||
secrets: | ||
nuget-key: ${{ secrets.NUGET_KEY }} |
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,15 @@ | ||
name: Build and test | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-test: | ||
name: Build abd test | ||
uses: HavenDV/workflows/.github/workflows/dotnet_build-test-publish.yml@main | ||
with: | ||
generate-build-number: false | ||
conventional-commits-publish-conditions: false | ||
enable-caching: false | ||
additional-test-arguments: '--logger GitHubActions' |
Oops, something went wrong.