Skip to content

Commit

Permalink
Problem: ci don't run for develop branch
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Mar 12, 2024
1 parent 715c7ea commit 7ca37ca
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build
on:
pull_request:
branches:
- main
- develop

jobs:
cleanup-runs:
Expand All @@ -11,7 +11,7 @@ jobs:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/develop'"

build:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: "CodeQL"

on:
push:
branches: [main]
branches: [develop]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
branches: [develop]
schedule:
- cron: '37 21 * * 4'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy Contract
on:
pull_request:
branches:
- main
- develop

jobs:
cleanup-runs:
Expand All @@ -11,7 +11,7 @@ jobs:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/develop'"

deploy:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
push:
branches:
- main
- develop

jobs:
triage:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
push:
branches:
- main
- develop
jobs:
golangci:
name: Run golangci-lint
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/markdown-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- '**.md'
push:
branches:
- main
- develop
paths:
- '**.md'

Expand All @@ -24,6 +24,6 @@ jobs:
folder-path: "docs"
check-modified-files-only: "yes"
use-quiet-mode: "yes"
base-branch: "main"
base-branch: "develop"
config-file: "mlc_config.json"
if: env.GIT_DIFF
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
push:
branches:
- main
- develop

jobs:
Gosec:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request: {}
push:
branches:
- main
- develop
paths:
- .github/workflows/semgrep.yml
schedule:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ name: Lint Code Base

on:
push:
branches: ["main"]
branches: ["develop"]
pull_request:
branches: ["main"]
branches: ["develop"]
jobs:
run-lint:
runs-on: ubuntu-latest
Expand All @@ -34,5 +34,5 @@ jobs:
VALIDATE_OPENAPI: false
VALIDATE_JSCPD: false
VALIDATE_GO: false
DEFAULT_BRANCH: "main"
DEFAULT_BRANCH: "develop"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7ca37ca

Please sign in to comment.