diff --git a/.github/workflows/validate-pull.yml b/.github/workflows/validate-pull.yml index cd4fa661..e45a3fdc 100644 --- a/.github/workflows/validate-pull.yml +++ b/.github/workflows/validate-pull.yml @@ -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 }}