Skip to content

Commit c368594

Browse files
committed
ci: updated.
1 parent 94844cb commit c368594

File tree

4 files changed

+24
-12
lines changed

4 files changed

+24
-12
lines changed

.github/workflows/auto-merge.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@ permissions:
1111
jobs:
1212
auto-merge:
1313
runs-on: ubuntu-latest
14-
if: ${{ (github.actor == 'dependabot[bot]' || github.actor == 'HavenDV') && github.repository_owner == 'tryAGI' }}
14+
if: ${{ github.event.pull_request.draft == false && (github.actor == 'dependabot[bot]' || github.actor == 'HavenDV') && github.repository_owner == 'tryAGI' }}
1515
steps:
1616
- name: Dependabot metadata
1717
if: ${{ github.actor == 'dependabot[bot]' }}
1818
id: metadata
1919
uses: dependabot/fetch-metadata@0fb21704c18a42ce5aa8d720ea4b912f5e6babef
2020
with:
2121
github-token: "${{ secrets.GITHUB_TOKEN }}"
22-
22+
2323
- name: Show sender
2424
run: echo ${{ github.event.pull_request.sender }}
25-
25+
2626
- name: Show triggering_actor
2727
run: echo ${{ github.triggering_actor }}
28-
28+
2929
- name: Approve a PR
3030
run: gh pr review --approve "$PR_URL"
3131
env:
3232
PR_URL: ${{ github.event.pull_request.html_url }}
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
34+
3535
- name: Enable auto-merge
3636
run: gh pr merge --auto --merge "$PR_URL"
3737
env:

.github/workflows/auto-update.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
git checkout -b ${{ steps.branch.outputs.branch_name }} origin/main
3030
git rebase main
3131
32+
- name: Setup .NET
33+
uses: actions/setup-dotnet@v4
34+
with:
35+
dotnet-version: 9.0.x
36+
3237
- name: Generate code
3338
run: |
3439
cd src/libs/Cohere
@@ -55,7 +60,7 @@ jobs:
5560
- name: Wait for 15 seconds
5661
if: steps.changes.outputs.has_changes == 'true'
5762
run: sleep 15
58-
63+
5964
- name: Create pull request
6065
if: steps.changes.outputs.has_changes == 'true'
6166
run: gh pr create -B main -H ${{ steps.branch.outputs.branch_name }} --title 'feat:@coderabbitai' --body '@coderabbitai summary'

.github/workflows/mkdocs.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,25 @@ jobs:
2828
steps:
2929
- name: Checkout
3030
uses: actions/checkout@v4
31-
31+
3232
- name: Setup Pages
3333
uses: actions/configure-pages@v5
3434

35-
- name: Install dependencies
36-
run: pip install mkdocs-material
37-
35+
- name: Setup .NET
36+
uses: actions/setup-dotnet@v4
37+
with:
38+
dotnet-version: 9.0.x
39+
3840
- name: Generate docs
3941
run: dotnet run --project src/helpers/GenerateDocs/GenerateDocs.csproj .
4042

4143
- name: Build with MkDocs
42-
run: mkdocs build -d ./_site
43-
44+
run: |
45+
python -m venv myenv
46+
source myenv/bin/activate
47+
pip install mkdocs-material
48+
mkdocs build -d ./_site
49+
4450
- name: Upload artifact
4551
uses: actions/upload-pages-artifact@v3
4652

.github/workflows/pull-request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
test:
99
name: Test
10+
if: github.event.pull_request.draft == false
1011
uses: HavenDV/workflows/.github/workflows/dotnet_build-test-publish.yml@main
1112
with:
1213
generate-build-number: false

0 commit comments

Comments
 (0)