Skip to content

Commit

Permalink
ci: add checks
Browse files Browse the repository at this point in the history
Signed-off-by: black-desk <me@black-desk.cn>
  • Loading branch information
black-desk committed Jun 21, 2024
1 parent 885d2ad commit 9e320be
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions .format
Submodule .format added at 95bc22
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- directory: /
package-ecosystem: gitsubmodule
schedule:
interval: daily
- directory: /
package-ecosystem: github-actions
schedule:
interval: daily
26 changes: 26 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Checks

on: [pull_request]

jobs:
checks:
name: Common checks
permissions:
contents: read
checks: write
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: black-desk/checks@v1
pass:
name: Pass
if: always()
needs:
- checks
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule ".format"]
path = .format
url = https://github.com/black-desk/.format

0 comments on commit 9e320be

Please sign in to comment.