mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
[skip ci] Fix GitHub actions (#3625)
This commit is contained in:
parent
78f5e240e2
commit
8f454a0282
7
.github/workflows/codeql.yml
vendored
7
.github/workflows/codeql.yml
vendored
@ -48,9 +48,10 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Swashbuckle CLI
|
- name: Setup .NET
|
||||||
shell: bash
|
uses: actions/setup-dotnet@v4
|
||||||
run: dotnet tool install -g Swashbuckle.AspNetCore.Cli
|
with:
|
||||||
|
dotnet-version: 9.0.x
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
15
.github/workflows/openapi-gen.yml
vendored
15
.github/workflows/openapi-gen.yml
vendored
@ -14,14 +14,11 @@ jobs:
|
|||||||
generate-openapi:
|
generate-openapi:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Only run on direct pushes to develop, not PRs
|
# Only run on direct pushes to develop, not PRs
|
||||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.repository_owner == 'Kareadita'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
token: ${{ secrets.REPO_GHA_PAT }}
|
|
||||||
|
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v4
|
||||||
@ -60,12 +57,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
|
|
||||||
|
git commit -m "Update OpenAPI documentation" openapi.json
|
||||||
|
|
||||||
# Pull latest changes with rebase to avoid merge commits
|
# Pull latest changes with rebase to avoid merge commits
|
||||||
git pull --rebase origin develop
|
git pull --rebase origin develop
|
||||||
|
|
||||||
# Commit and push
|
|
||||||
git commit -m "Update OpenAPI documentation" openapi.json
|
|
||||||
git push
|
git push
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.REPO_GHA_PAT }}
|
GITHUB_TOKEN: ${{ secrets.REPO_GHA_PAT }}
|
||||||
|
2
.github/workflows/pr-check.yml
vendored
2
.github/workflows/pr-check.yml
vendored
@ -1,8 +1,6 @@
|
|||||||
name: Validate PR Body
|
name: Validate PR Body
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: '**'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main, develop, canary ]
|
branches: [ main, develop, canary ]
|
||||||
types: [synchronize]
|
types: [synchronize]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user