mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
update workflow (#2148)
This commit is contained in:
parent
058a42e0d0
commit
dff663fd94
1 changed files with 4 additions and 2 deletions
6
.github/workflows/validate-pull.yml
vendored
6
.github/workflows/validate-pull.yml
vendored
|
@ -28,6 +28,7 @@ jobs:
|
|||
- name: Checkout Repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 2
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
|
||||
|
@ -53,7 +54,7 @@ jobs:
|
|||
docker-build-pull:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ validate-pull ]
|
||||
if: needs.verify-changes.outputs.build == 'true' && (contains(github.event.pull_request.labels.*.name, 'docker') || contains(github.event.pull_request.labels.*.name, 'tester'))
|
||||
if: needs.validate-pull.outputs.build == 'true' && (contains(github.event.pull_request.labels.*.name, 'docker') || contains(github.event.pull_request.labels.*.name, 'tester'))
|
||||
outputs:
|
||||
commit-msg: ${{ steps.update-version.outputs.commit-msg }}
|
||||
version: ${{ steps.update-version.outputs.version }}
|
||||
|
@ -192,7 +193,7 @@ jobs:
|
|||
body='${{ github.event.pull_request.body }}'
|
||||
body=$(echo "$body" | sed -n '/## Description/,/##/{/## Description/b;/##/b;p}')
|
||||
body=$(echo $body|tr -d '\n')
|
||||
echo 'description=$body' >> $GITHUB_OUTPUT
|
||||
echo "description=$body" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Discord Testers Notification
|
||||
uses: Kometa-Team/discord-notifications@master
|
||||
|
@ -225,6 +226,7 @@ jobs:
|
|||
with:
|
||||
webhook_id_token: ${{ secrets.TESTERS_WEBHOOK }}
|
||||
message: 'New Commit Pushed to `${{ needs.docker-build-pull.outputs.tag-name }}`: ${{ needs.docker-build-pull.outputs.version }}'
|
||||
title: ${{ github.event.pull_request.title }}
|
||||
description: ${{ needs.docker-build-pull.outputs.commit-msg }}
|
||||
url: https://github.com/Kometa-Team/${{ vars.REPO_NAME }}/pull/${{ github.event.number }}
|
||||
color: ${{ vars.COLOR_SUCCESS }}
|
||||
|
|
Loading…
Reference in a new issue