Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#380: Add action-git-diff-check workflow #381

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/action-git-diff-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: PR checks (git --check)

on: pull_request

jobs:
check:
name: Run git check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Fetch base_ref HEAD
run: git fetch --depth=1 origin +refs/heads/${{github.base_ref}}:refs/remotes/origin/${{github.base_ref}}
- name: Display base sha
shell: bash
run: echo "${{ github.event.pull_request.base.sha }}"
- uses: joel-coffman/[email protected]
with:
revision: ${{ github.event.pull_request.base.sha }}
Loading