We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a8a425 commit baa6f51Copy full SHA for baa6f51
.github/workflows/ubuntu_version_sync.yml
@@ -22,7 +22,11 @@ on:
22
23
jobs:
24
check-sync:
25
+ name: Ubuntu File Synchronization Check
26
runs-on: ubuntu-latest
27
+ env:
28
+ BASE_SHA: ${{ github.event.pull_request.base.sha }}
29
+ HEAD_SHA: ${{ github.event.pull_request.head.sha }}
30
steps:
31
- name: 'Checkout code'
32
uses: actions/checkout@v4
@@ -34,7 +38,7 @@ jobs:
34
38
run: |
35
39
set -e
36
40
37
- MODIFIED_FILES=$(git diff --name-only ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }})
41
+ MODIFIED_FILES=$(git diff --name-only $BASE_SHA...$HEAD_SHA)
42
echo "Checking for synchronized file changes..."
43
echo "Modified files in this PR:"
44
echo "$MODIFIED_FILES"
0 commit comments