Skip to content

Commit

Permalink
Use share workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinxc committed Aug 21, 2023
1 parent 7eed828 commit 23d95c8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 54 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,5 @@ on:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
jupyter: true
version: "23.1"
python-linter:
uses: secretflow/.github/workflows/python-linter.yml@main
9 changes: 2 additions & 7 deletions .github/workflows/buildifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,5 @@ on:
branches:
- main
jobs:
formatting-check:
name: Run buildifier check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run buildifier
uses: jbajic/buildifier@v1
bazel-formatting-check:
uses: secretflow/.github/workflows/bazel-linter.yml@main
10 changes: 2 additions & 8 deletions .github/workflows/clang-format-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,5 @@ on:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DoozyX/clang-format-lint-action@v0.16.2
with:
extensions: h,cc
clangFormatVersion: 16.0.3
run-clang-format:
uses: secretflow/.github/workflows/clang-format.yml@main
19 changes: 1 addition & 18 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,4 @@ on:
- cron: 40 9 * * *
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: Stale issue message. Please comment to remove stale
tag. Otherwise this issue will be closed soon.
stale-pr-message: Stale pull request message. Please comment to remove stale
tag. Otherwise this pr will be closed soon.
stale-issue-label: no-issue-activity
exempt-issue-labels: never-stale
stale-pr-label: no-pr-activity
days-before-stale: 30
days-before-close: 7
exempt-all-assignees: true
uses: secretflow/.github/workflows/stale.yml@main
15 changes: 2 additions & 13 deletions .github/workflows/yaml-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,5 @@ on:
branches:
- main
jobs:
lintAllTheThings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
with:
config_data: |
rules:
line-length:
max: 300
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true
yaml-linter:
uses: secretflow/.github/workflows/yaml-linter.yml@main

0 comments on commit 23d95c8

Please sign in to comment.