mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-14 00:37:22 +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
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
fetch-depth: 2
|
||||||
ref: ${{ github.event.pull_request.head.ref }}
|
ref: ${{ github.event.pull_request.head.ref }}
|
||||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||||
|
|
||||||
|
@ -53,7 +54,7 @@ jobs:
|
||||||
docker-build-pull:
|
docker-build-pull:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [ validate-pull ]
|
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:
|
outputs:
|
||||||
commit-msg: ${{ steps.update-version.outputs.commit-msg }}
|
commit-msg: ${{ steps.update-version.outputs.commit-msg }}
|
||||||
version: ${{ steps.update-version.outputs.version }}
|
version: ${{ steps.update-version.outputs.version }}
|
||||||
|
@ -192,7 +193,7 @@ jobs:
|
||||||
body='${{ github.event.pull_request.body }}'
|
body='${{ github.event.pull_request.body }}'
|
||||||
body=$(echo "$body" | sed -n '/## Description/,/##/{/## Description/b;/##/b;p}')
|
body=$(echo "$body" | sed -n '/## Description/,/##/{/## Description/b;/##/b;p}')
|
||||||
body=$(echo $body|tr -d '\n')
|
body=$(echo $body|tr -d '\n')
|
||||||
echo 'description=$body' >> $GITHUB_OUTPUT
|
echo "description=$body" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Discord Testers Notification
|
- name: Discord Testers Notification
|
||||||
uses: Kometa-Team/discord-notifications@master
|
uses: Kometa-Team/discord-notifications@master
|
||||||
|
@ -225,6 +226,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
webhook_id_token: ${{ secrets.TESTERS_WEBHOOK }}
|
webhook_id_token: ${{ secrets.TESTERS_WEBHOOK }}
|
||||||
message: 'New Commit Pushed to `${{ needs.docker-build-pull.outputs.tag-name }}`: ${{ needs.docker-build-pull.outputs.version }}'
|
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 }}
|
description: ${{ needs.docker-build-pull.outputs.commit-msg }}
|
||||||
url: https://github.com/Kometa-Team/${{ vars.REPO_NAME }}/pull/${{ github.event.number }}
|
url: https://github.com/Kometa-Team/${{ vars.REPO_NAME }}/pull/${{ github.event.number }}
|
||||||
color: ${{ vars.COLOR_SUCCESS }}
|
color: ${{ vars.COLOR_SUCCESS }}
|
||||||
|
|
Loading…
Reference in a new issue