mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2025-02-23 02:16:20 +00:00
105 lines
3.2 KiB
YAML
105 lines
3.2 KiB
YAML
name: Pull Request 📥
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
pull_request_target:
|
|
merge_group:
|
|
|
|
permissions:
|
|
pull-requests: read
|
|
|
|
jobs:
|
|
push-comment:
|
|
name: Create comments ✍️
|
|
if: ${{ always() && !cancelled() && github.repository == 'jellyfin/jellyfin-vue' }}
|
|
uses: ./.github/workflows/__job_messages.yml
|
|
secrets: inherit
|
|
with:
|
|
commit: ${{ github.event.pull_request.head.sha }}
|
|
in_progress: true
|
|
comment: true
|
|
|
|
automation:
|
|
name: Automation 🎛️
|
|
if: ${{ always() && !cancelled() && github.repository == 'jellyfin/jellyfin-vue' }}
|
|
uses: ./.github/workflows/__automation.yml
|
|
secrets: inherit
|
|
|
|
semantic-commits:
|
|
if: ${{ always() && !cancelled() && github.repository == 'jellyfin/jellyfin-vue' }}
|
|
runs-on: ubuntu-latest
|
|
name: Semantic Pull Request 📚
|
|
steps:
|
|
- name: Validate PR title 👌
|
|
uses: amannn/action-semantic-pull-request@v5.5.3
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }}
|
|
with:
|
|
subjectPattern: ^(?![A-Z]).+$
|
|
subjectPatternError: |
|
|
The subject "{subject}" found in the pull request title "{title}"
|
|
didn't match the configured pattern. Please ensure that the subject
|
|
doesn't start with an uppercase character.
|
|
|
|
label:
|
|
name: Labeling 🏷️
|
|
if: ${{ always() && !cancelled() && github.repository == 'jellyfin/jellyfin-vue'}}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Label depending on modified files
|
|
uses: actions/labeler@v5.0.0
|
|
with:
|
|
sync-labels: true
|
|
repo-token: ${{ secrets.JF_BOT_TOKEN }}
|
|
|
|
build:
|
|
name: Build 🏗️
|
|
if: ${{ always() && !cancelled() }}
|
|
uses: ./.github/workflows/__package.yml
|
|
# Needed for attestation publication
|
|
permissions:
|
|
id-token: write
|
|
attestations: write
|
|
with:
|
|
commit: ${{ github.event.pull_request.head.sha }}
|
|
|
|
quality_checks:
|
|
name: Quality checks 👌🧪
|
|
if: ${{ always() && !cancelled() }}
|
|
uses: ./.github/workflows/__quality_checks.yml
|
|
permissions: {}
|
|
with:
|
|
commit: ${{ github.event.pull_request.head.sha }}
|
|
|
|
codeql:
|
|
name: GitHub CodeQL 🔬
|
|
if: ${{ always() && !cancelled() }}
|
|
uses: ./.github/workflows/__codeql.yml
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
with:
|
|
commit: ${{ github.event.pull_request.head.sha }}
|
|
|
|
deploy:
|
|
name: Deploy 🚀
|
|
uses: ./.github/workflows/__deploy.yml
|
|
if: ${{ always() && !cancelled() && github.repository == 'jellyfin/jellyfin-vue' }}
|
|
needs:
|
|
- push-comment
|
|
- build
|
|
permissions:
|
|
contents: read
|
|
deployments: write
|
|
secrets: inherit
|
|
with:
|
|
# If the PR is from the master branch of a fork, append the fork's name to the branch name
|
|
branch: ${{ github.event.pull_request.head.repo.full_name != github.repository && github.event.pull_request.head.ref == 'master' && format('{0}/{1}', github.event.pull_request.head.repo.full_name, github.event.pull_request.head.ref) || github.event.pull_request.head.ref }}
|
|
comment: true
|
|
commit: ${{ github.event.pull_request.head.sha }}
|