File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 1313
1414jobs :
1515 validate_json :
16+ if : ${{ github.event_name == 'pull_request' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
1617 runs-on : ubuntu-latest
1718 defaults :
1819 run :
2930 run : python3 .github/validate_json.py
3031
3132 validate_mod_json :
33+ if : ${{ github.event_name == 'pull_request' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
3234 needs : validate_json
3335 runs-on : ubuntu-latest
3436 defaults :
4244 run : python3 .github/validate_mod_json.py
4345
4446 update_size :
45- needs : validate_json
47+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
4648 runs-on : ubuntu-latest
4749 defaults :
4850 run :
6062 - name : Determine branch and switch
6163 id : branch_info
6264 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)
6866 echo "branch_name=$branch_name" >> $GITHUB_ENV
69- git checkout $branch_name || git checkout -b $branch_name
7067 echo "Checked out branch: $branch_name"
7168
7269 - name : Set upstream for branch
You can’t perform that action at this time.
0 commit comments