Blog: Building Your Node-RED Industrial MCP Server with FlowFuse #4047
Workflow file for this run
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: Compress images | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '**.jpg' | |
- '**.jpeg' | |
- '**.png' | |
- '**.webp' | |
jobs: | |
build: | |
name: calibreapp/image-actions | |
runs-on: ubuntu-latest | |
if: github.repository == 'FlowFuse/website' && github.event.pull_request.head.repo.full_name == github.repository | |
steps: | |
- name: Checkout Branch | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
- name: Compress Images | |
id: calibre | |
uses: calibreapp/image-actions@f32575787d333b0579f0b7d506ff03be63a669d1 # 1.4.1 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# For non-Pull Requests, run in compressOnly mode and we'll PR after. | |
compressOnly: ${{ github.event_name != 'pull_request' }} | |
pngQuality: '80' |