release(jackett): update jackett/jackett ( v0.24.222 → v0.24.234 ) (#… #1296
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
| --- | |
| # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
| name: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - apps/** | |
| workflow_dispatch: | |
| inputs: | |
| app: | |
| type: string | |
| description: App Name | |
| required: true | |
| release: | |
| type: boolean | |
| description: Release | |
| required: false | |
| default: false | |
| jobs: | |
| prepare: | |
| name: Prepare | |
| runs-on: ubuntu-latest | |
| outputs: | |
| changed-files: ${{ steps.changed-files.outputs.changed_files }} | |
| steps: | |
| - name: Get Changed Files | |
| uses: bjw-s-labs/action-changed-files@1a5aeab1bfa64d0c4e786f501d5a3f1fad4a24da # v0.4.1 | |
| id: changed-files | |
| with: | |
| path: apps | |
| include_only_directories: true | |
| max_depth: 1 | |
| changed: | |
| if: ${{ needs.prepare.outputs.changed-files != '[]' || github.event_name == 'workflow_dispatch' }} | |
| name: Get Changed Apps | |
| needs: | |
| - prepare | |
| runs-on: ubuntu-latest | |
| outputs: | |
| apps: ${{ steps.apps.outputs.apps }} | |
| steps: | |
| - name: Get Apps | |
| uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 | |
| id: apps | |
| env: | |
| APPS: ${{ github.event_name == 'workflow_dispatch' && inputs.app || join(fromJSON(needs.prepare.outputs.changed-files), ' ') }} | |
| with: | |
| script: |- | |
| const { APPS } = process.env; | |
| const appsToBuild = APPS.split(' ').filter(Boolean); | |
| core.setOutput('apps', JSON.stringify(appsToBuild)); | |
| console.log('apps:', JSON.stringify(appsToBuild, null, 2)); | |
| core.summary.addHeading('Apps to build:').addList(appsToBuild).write(); | |
| build: | |
| if: ${{ needs.changed.outputs.apps != '[]' }} | |
| name: Build ${{ matrix.app }} | |
| needs: | |
| - changed | |
| uses: ./.github/workflows/app-builder.yaml | |
| permissions: | |
| attestations: write | |
| contents: write | |
| id-token: write | |
| packages: write | |
| security-events: write | |
| secrets: inherit | |
| strategy: | |
| matrix: | |
| app: ${{ fromJSON(needs.changed.outputs.apps) }} | |
| fail-fast: false | |
| max-parallel: 4 | |
| with: | |
| app: ${{ matrix.app }} | |
| release: ${{ github.event_name == 'workflow_dispatch' && inputs.release || github.event_name == 'push' }} | |
| status: | |
| if: ${{ !cancelled() }} | |
| name: Build Success | |
| needs: | |
| - build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Any jobs failed? | |
| if: ${{ contains(needs.*.result, 'failure') }} | |
| run: |- | |
| exit 1 | |
| - name: All jobs passed or skipped? | |
| if: ${{ !(contains(needs.*.result, 'failure')) }} | |
| run: |- | |
| echo "All jobs passed or skipped" && echo "${{ toJSON(needs.*.result) }}" |