88 type : string
99 required : true
1010 schedule :
11- - cron : ' 0 0 1 * *' # Runs at 00:00 UTC on the 1st of every month
11+ - cron : ' 0 0 1 * *'
1212
1313concurrency :
1414 group : ${{ github.ref }}
1515 cancel-in-progress : true
1616
1717jobs :
1818 build :
19- runs-on : ubuntu-latest-16-cores
19+ runs-on : ubuntu-22.04
2020
2121 steps :
2222 - uses : actions/checkout@v4
2323 with :
24- token : ${{ secrets.REPO_ACCESS_TOKEN }} # Use PAT for checkout
24+ token : ${{ secrets.REPO_ACCESS_TOKEN }}
25+
26+ - name : Check initial disk space
27+ run : df -h
2528
2629 - name : Download doxygen
2730 run : |
3134 - name : Determine V8 Version
3235 id : v8-version
3336 run : |
34- # Use provided V8Version for workflow_dispatch, or fetch latest tag for scheduled run
3537 if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
3638 echo "version=${{ inputs.V8Version }}" >> $GITHUB_OUTPUT
3739 else
38- # Fetch the latest V8 tag from the V8 repository
3940 latest_tag=$(git ls-remote --tags https://github.com/v8/v8 | sort -t '/' -k 3 -V | tail -n 1 | awk -F/ '{print $NF}')
4041 echo "version=$latest_tag" >> $GITHUB_OUTPUT
4142 fi
@@ -44,29 +45,30 @@ jobs:
4445 run : |
4546 mkdir /tmp/V8SourceCode
4647 git clone --branch ${{ steps.v8-version.outputs.version }} --depth 1 https://github.com/v8/v8 /tmp/V8SourceCode
48+ du -sh /tmp/V8SourceCode
4749
4850 - name : Create V8Docs
4951 run : |
5052 mkdir /tmp/V8Docs
5153 doxygen Doxyfile
54+ du -sh /tmp/V8Docs
55+
56+ - name : Clean up temporary files
57+ run : |
58+ rm -rf /tmp/V8SourceCode
59+ du -sh /tmp/*
5260
5361 - name : Delete Existing V8Docs and Commit New V8Docs
5462 run : |
55- # Remove existing V8Docs folder if it exists
5663 rm -rf $GITHUB_WORKSPACE/V8Docs
57-
58- # Copy new V8Docs content
5964 mkdir -p $GITHUB_WORKSPACE/V8Docs
6065 cp -r /tmp/V8Docs/* $GITHUB_WORKSPACE/V8Docs/
61- rm -rf /tmp/V8Docs/
62- rm -rf /tmp/V8SourceCode
63-
66+ rm -rf /tmp/V8Docs
6467 git config --global user.name '7resp4ss'
6568 git config --global user.email '81899344+7resp4ss@users.noreply.github.com'
66-
67- # Stage all changes (including deletions)
6869 git add -A V8Docs/
6970 git commit -m "Update V8Docs for V8 version ${{ steps.v8-version.outputs.version }}"
70-
71- # Push changes using PAT
7271 git push https://x:${{ secrets.REPO_ACCESS_TOKEN }}@github.com/7resp4ss/DoxygenV8.git HEAD:${{ github.ref_name }}
72+
73+ - name : Check final disk space
74+ run : df -h
0 commit comments