Skip to content

Commit

Permalink
Refactor structure configuration to simplify workflow definitions and…
Browse files Browse the repository at this point in the history
… organize folders
  • Loading branch information
httpdss committed Dec 25, 2024
1 parent 671de90 commit b520a2f
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions .struct.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
structure:
- .github/workflows/pre-commit.yaml:
content: |
name: pre-commit
on:
pull_request:
push:
branches: [{{@ "httpdss/struct" | default_branch @}}]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@{{@ "actions/checkout" | latest_release @}}
- uses: actions/setup-python@{{@ "actions/setup-python" | latest_release @}}
- uses: pre-commit/action@{{@ "pre-commit/action" | latest_release @}}
- .pre-commit-config.yaml:
content: |
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: {{@ "pre-commit/pre-commit-hooks" | latest_release @}}
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
folders:
- ./:
struct:
- github/workflows/pre-commit
- github/workflows/release-drafter

0 comments on commit b520a2f

Please sign in to comment.