Skip to content

Commit

Permalink
Add workflow running pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
bbannier committed Jan 5, 2024
1 parent de37e74 commit 16379cd
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/deploy-ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,18 @@ jobs:
# Build job
build:
uses: ./.github/workflows/build.yml
check:
uses: ./.github/workflows/pre-commit.yml

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
needs:
- check
- build
steps:
- uses: actions/download-artifact@v4
- name: Setup Pages
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/deploy-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ concurrency:
jobs:
build:
uses: ./.github/workflows/build.yml
check:
uses: ./.github/workflows/pre-commit.yml

deploy:
environment:
name: s3
url: https://static.zeek.org/spicy-course
runs-on: ubuntu-latest
needs: build
needs:
- check
- build
env:
AWS_ACCESS_KEY_ID: ${{ secrets.STATIC_ZEEK_ORG_AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.STATIC_ZEEK_ORG_AWS_SECRET_ACCESS_KEY }}
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Check

on:
# This is a resusable workflow intended to be called by other jobs.
workflow_call:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: pre-commit/[email protected]

0 comments on commit 16379cd

Please sign in to comment.