build(deps): Bump esbuild from 0.24.0 to 0.25.0 in /applications/system/js_app/packages/fz-sdk in the npm_and_yarn group across 1 directory #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Generate documentation with Doxygen' | |
| on: | |
| push: | |
| branches: | |
| - fix | |
| pull_request: | |
| env: | |
| TARGETS: f7 | |
| DEFAULT_TARGET: f7 | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| permissions: write-all | |
| jobs: | |
| check-secret: | |
| if: ${{ github.event.pull_request.head.repo.fork == false }} | |
| runs-on: ubuntu-latest | |
| outputs: | |
| s3-valid-config: ${{ steps.check.outputs.s3-valid-config }} | |
| steps: | |
| - name: 'Check if S3 key exists' | |
| id: check | |
| run: | | |
| set -e | |
| sudo -i | |
| if [[ -z "${{ secrets.FW_DOCS_AWS_ACCESS_KEY }}" || -z "${{ secrets.FW_DOCS_AWS_SECRET_KEY }}" || -z "${{ secrets.FW_DOCS_AWS_BUCKET }}" ]]; then | |
| echo "s3-valid-config=false" >> $GITHUB_OUTPUT; | |
| else | |
| echo "s3-valid-config=true" >> $GITHUB_OUTPUT; | |
| fi | |
| doxygen: | |
| if: ${{ github.event.pull_request.head.repo.fork == false }} | |
| runs-on: ubuntu-latest | |
| needs: check-secret | |
| steps: | |
| - name: 'Wipe workspace' | |
| run: sudo find ./ -mount -maxdepth 1 -exec rm -rf {} \; | |
| - name: 'Checkout code' | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| fetch-depth: 1 | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: 'Get commit details' | |
| id: names | |
| run: | | |
| set -e | |
| sudo -i | |
| if [[ ${{ github.event_name }} == 'pull_request' ]]; then | |
| TYPE="pull" | |
| elif [[ "${{ github.ref }}" == "refs/tags/"* ]]; then | |
| TYPE="tag" | |
| else | |
| TYPE="other" | |
| fi | |
| python3 scripts/get_env.py "--event_file=${{ github.event_path }}" "--type=$TYPE" | |
| - name: install-doxygen | |
| uses: AdarshRawat1/Install-Doxygen@v1.0 | |
| with: | |
| version: "1.12.0" | |
| - name: 'Generate documentation' | |
| run: sudo ./fbt doxygen | |
| - name: 'Upload documentation' | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/dev' && needs.check-secret.outputs.s3-valid-config == 'true' }} | |
| uses: jakejarvis/s3-sync-action@v0.5.1 | |
| env: | |
| AWS_S3_BUCKET: "${{ secrets.FW_DOCS_AWS_BUCKET }}" | |
| AWS_ACCESS_KEY_ID: "${{ secrets.FW_DOCS_AWS_ACCESS_KEY }}" | |
| AWS_SECRET_ACCESS_KEY: "${{ secrets.FW_DOCS_AWS_SECRET_KEY }}" | |
| AWS_REGION: "${{ secrets.FW_DOCS_AWS_REGION }}" | |
| SOURCE_DIR: "./documentation/doxygen/build/html" | |
| DEST_DIR: "${{steps.names.outputs.branch_name}}" | |
| with: | |
| args: "--delete" |