Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check gate label #676

Merged
merged 15 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/label-gate.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
name: run tests
name: merge branch

on:
pull_request:
types:
- labeled

jobs:
run-checks:
runs-on: ubuntu-latest
if: ${{ github.event.label.name == 'gate' }}
steps:
- uses: ./.github/workflows/otc-golangci-lint.yaml
merge:
runs-on: ubuntu-latest
name: merge branch into devel
environment: github
if: ${{ github.event.label.name == 'gate' && github.event.review.state == 'APPROVED' }}
if: ${{ github.event.label.name == 'gate' }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/otc-golangci-lint.yaml
- uses: ./.github/workflows/otc-run-acc-tests.yaml
- uses: devmasx/merge-branch@master
with:
label_name: 'gate'
target_branch: 'devel'
target_branch: 'github-actions-1'
github_token: ${{ secrets.TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/otc-golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- opened
- edited
- synchronize
workflow_call:


jobs:
lint:
Expand Down
Loading