@@ -54,19 +54,16 @@ jobs:
54
54
runs-on : ubuntu-24.04
55
55
if : github.repository == 'llvm/llvm-project'
56
56
steps :
57
- # Don't fetch before checking for file changes to force the file changes
58
- # action to use the Github API in pull requests. If it's a push to a
59
- # branch we can't use the Github API to get the diff, so we need to have
60
- # a local checkout beforehand.
61
- - name : Fetch LLVM sources (Push)
62
- if : ${{ github.event_name == 'push' }}
57
+ - name : Fetch LLVM sources
63
58
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
64
59
with :
65
- fetch-depth : 1
60
+ fetch-depth : 2
66
61
- name : Get subprojects that have doc changes
67
62
id : docs-changed-subprojects
68
63
uses : step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45.0.1
69
64
with :
65
+ skip_initial_fetch : true
66
+ base_sha : HEAD~1
70
67
files_yaml : |
71
68
llvm:
72
69
- 'llvm/docs/**'
96
93
- 'flang/include/flang/Optimizer/Dialect/FIROps.td'
97
94
workflow:
98
95
- '.github/workflows/docs.yml'
99
- - name : Fetch LLVM sources (PR)
100
- if : ${{ github.event_name == 'pull_request' }}
101
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
102
- with :
103
- fetch-depth : 1
104
96
- name : Setup Python env
105
97
uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
106
98
with :
@@ -111,6 +103,8 @@ jobs:
111
103
run : pip install -r llvm/docs/requirements-hashed.txt
112
104
- name : Install system dependencies
113
105
run : |
106
+ echo "${{ toJson(steps.docs-changed-subprojects.outputs) }}"
107
+ git log
114
108
sudo apt-get update
115
109
# swig and graphviz are lldb specific dependencies
116
110
sudo apt-get install -y cmake ninja-build swig graphviz
0 commit comments