Skip to content

Commit

Permalink
CI: also check for removed lines compared to main
Browse files Browse the repository at this point in the history
  • Loading branch information
Spritetm committed Jul 10, 2024
1 parent 664c628 commit 3f74889
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
# Checkout entire repo; it's tiny and we need the main branch for comparison to
# check for removed lines.
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check allocated-pids-espressif-devboards
working-directory: ${{ github.workspace }}/
run: bash ./check-file-format.sh allocated-pids-espressif-devboards.txt 0x7000
Expand All @@ -31,3 +36,6 @@ jobs:
working-directory: ${{ github.workspace }}/
run: bash ./check-file-format.sh allocated-pids.txt 0x8000

- name: Check removed lines
working-directory: ${{ github.workspace }}/
run: bash -c "! git diff origin/main | grep '^-0'"

0 comments on commit 3f74889

Please sign in to comment.