File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 13
13
14
14
jobs :
15
15
validate_json :
16
+ if : ${{ github.event_name == 'pull_request' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
16
17
runs-on : ubuntu-latest
17
18
defaults :
18
19
run :
29
30
run : python3 .github/validate_json.py
30
31
31
32
validate_mod_json :
33
+ if : ${{ github.event_name == 'pull_request' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
32
34
needs : validate_json
33
35
runs-on : ubuntu-latest
34
36
defaults :
42
44
run : python3 .github/validate_mod_json.py
43
45
44
46
update_size :
45
- needs : validate_json
47
+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
46
48
runs-on : ubuntu-latest
47
49
defaults :
48
50
run :
60
62
- name : Determine branch and switch
61
63
id : branch_info
62
64
run : |
63
- if [ -z "$GITHUB_HEAD_REF" ]; then
64
- branch_name=$(git symbolic-ref --short HEAD)
65
- else
66
- branch_name=$GITHUB_HEAD_REF
67
- fi
65
+ branch_name=$(git symbolic-ref --short HEAD)
68
66
echo "branch_name=$branch_name" >> $GITHUB_ENV
69
- git checkout $branch_name || git checkout -b $branch_name
70
67
echo "Checked out branch: $branch_name"
71
68
72
69
- name : Set upstream for branch
You can’t perform that action at this time.
0 commit comments