Skip to content

Commit

Permalink
Problem: ci don't run for develop branch (#421)
Browse files Browse the repository at this point in the history
* Problem: ci don't run for develop branch

* cleanup

* try fix super linter

* fix super linter

* add permission

* remove super-linter for now

---------

Co-authored-by: mmsqe <[email protected]>
  • Loading branch information
yihuang and mmsqe authored Mar 12, 2024
1 parent 715c7ea commit b3083d7
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 53 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
38 changes: 0 additions & 38 deletions .github/workflows/super-linter.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
push:
branches:
- main
- develop
- release/**

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pull_request_rules:
actions:
backport:
branches:
- main
- develop
- name: backport patches to v0.20.x branch
conditions:
- base=main
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: contracts
on:
push:
branches:
- main
- develop
pull_request:
branches:
- '*'
Expand Down

0 comments on commit b3083d7

Please sign in to comment.