File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : ci
2
2
3
- concurrency :
4
- group : ci-${{ github.ref_name }}-${{ github.event_name }}
5
- cancel-in-progress : ${{ ! startsWith(github.ref, 'refs/tags/') }}
6
-
7
3
on :
8
4
pull_request :
9
5
branches :
10
6
- main
7
+ types :
8
+ - opened
9
+ - synchronize
11
10
12
11
permissions :
13
12
contents : read
@@ -24,13 +23,25 @@ jobs:
24
23
uses : actions/checkout@v4
25
24
with :
26
25
fetch-depth : 0
26
+
27
+ - name : Determine comparison base
28
+ id : determine-base
29
+ run : |
30
+ if [[ ${{ github.event.action }} == "opened" ]]; then
31
+ echo "::set-output name=base_ref::main"
32
+ else
33
+ echo "::set-output name=base_ref::${{ github.event.before }}"
34
+ fi
35
+
27
36
- name : Get changed files
28
37
id : changed-files
29
38
uses : tj-actions/changed-files@v45
30
39
with :
31
- since_last_remote_commit : true
40
+ base-ref : ${{ steps.determine-base.outputs.base_ref }}
41
+ sha : ${{ github.sha }}
32
42
files : |
33
43
**/Dockerfile
44
+
34
45
- name : Prepare
35
46
id : prepare
36
47
shell : python
You can’t perform that action at this time.
0 commit comments