Skip to content

Commit

Permalink
Merge pull request #381 from DARMA-tasking/380-add-action-git-diff-ch…
Browse files Browse the repository at this point in the history
…eck-workflow

#380: Add `action-git-diff-check` workflow
  • Loading branch information
lifflander authored Jan 7, 2025
2 parents 523d7ca + f993427 commit 61dfa17
Showing 1 changed file with 21 additions and 0 deletions.
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 }}

0 comments on commit 61dfa17

Please sign in to comment.