Skip to content

Commit

Permalink
fixup! ✨(project) add boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
quitterie-lcs committed Apr 19, 2024
1 parent 5a40370 commit 54a0350
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/service-notebook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ jobs:
# of the branch commits.
fetch-depth: 0

- name: Fetch latest changes
run: git fetch origin main
# - name: Fetch latest changes
# run: git fetch origin main

- name: Get commit hash of origin/main
id: get_origin_main_hash
run: echo "::set-output name=hash::$(git rev-parse origin/main)"
# - name: Get commit hash of origin/main
# id: get_origin_main_hash
# run: echo "::set-output name=hash::$(git rev-parse origin/main)"

- name: Enforce absence of print statements in code
run: |
! git diff ${{ steps.get_origin_main_hash.outputs.hash }}..HEAD -- . ':(exclude).github' | grep "print("
! git diff origin/main..HEAD -- . ':(exclude).github' | grep "print("
- name: Enforce absence of FIXME statements in code
run: |
! git diff ${{ steps.get_origin_main_hash.outputs.hash }}..HEAD -- . ':(exclude).github' | grep "FIXME"
! git diff origin/main..HEAD -- . ':(exclude).github' | grep "FIXME"
- name: Check absence of fixup commits
run: |
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Lint commit messages added to main
run: |
~/.local/bin/gitlint --commits ${{ steps.get_origin_main_hash.outputs.hash }}..HEAD
~/.local/bin/gitlint --commits origin/main..HEAD

build-docker-notebook:
Expand Down

0 comments on commit 54a0350

Please sign in to comment.