mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
Use merge-gatekeeper (#1245)
This commit is contained in:
parent
02c8827483
commit
b24e2d917d
22
.github/workflows/deploy-docsite-dummy.yml
vendored
22
.github/workflows/deploy-docsite-dummy.yml
vendored
@ -1,22 +0,0 @@
|
||||
# This workflow is a dummy workflow that runs whenever `deploy-docsite.yml` doesn't run to trick the GitHub Actions system into seeing `Docsite and Storybook CI/CD` as a valid status check.
|
||||
# See https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
|
||||
|
||||
name: Docsite and Storybook CI/CD
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- "docs/**"
|
||||
- "storybook/**"
|
||||
- "**/*.story.*"
|
||||
- "**/*.stories.*"
|
||||
- ".github/workflows/deploy-docsite.yml"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Docsite
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: 'echo "No build required."'
|
26
.github/workflows/merge-gatekeeper.yml
vendored
Normal file
26
.github/workflows/merge-gatekeeper.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
name: Merge Gatekeeper
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
|
||||
jobs:
|
||||
merge-gatekeeper:
|
||||
runs-on: ubuntu-latest
|
||||
# Restrict permissions of the GITHUB_TOKEN.
|
||||
# Docs: https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
|
||||
permissions:
|
||||
checks: read
|
||||
statuses: read
|
||||
steps:
|
||||
- name: Run Merge Gatekeeper
|
||||
# NOTE: v1 is updated to reflect the latest v1.x.y. Please use any tag/branch that suits your needs:
|
||||
# https://github.com/upsidr/merge-gatekeeper/tags
|
||||
# https://github.com/upsidr/merge-gatekeeper/branches
|
||||
uses: upsidr/merge-gatekeeper@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
ignored: Test Onboarding, Analyze (go), Analyze (javascript-typescript), License Compliance
|
Loading…
Reference in New Issue
Block a user