|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
name: Update Build Version
|
|
|
|
|
name: Increment Build
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
pull_request:
|
|
|
|
@ -6,7 +6,7 @@ on:
|
|
|
|
|
types: [closed]
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
increment-version:
|
|
|
|
|
increment-build:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
if: github.base_ref == 'nightly' && github.event.pull_request.merged
|
|
|
|
|
outputs:
|
|
|
|
@ -62,7 +62,7 @@ jobs:
|
|
|
|
|
|
|
|
|
|
verify-changes:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
needs: [ increment-version ]
|
|
|
|
|
needs: [ increment-build ]
|
|
|
|
|
outputs:
|
|
|
|
|
build: ${{ steps.list-changes.outputs.build }}
|
|
|
|
|
steps:
|
|
|
|
@ -89,9 +89,9 @@ jobs:
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
docker-build:
|
|
|
|
|
docker-build-nightly:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
needs: [ increment-version, verify-changes ]
|
|
|
|
|
needs: [ increment-build, verify-changes ]
|
|
|
|
|
if: needs.verify-changes.outputs.build == 'true'
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
|
@ -158,7 +158,7 @@ jobs:
|
|
|
|
|
|
|
|
|
|
commit-notification:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
needs: [ increment-version, verify-changes, docker-build ]
|
|
|
|
|
needs: [ increment-build, verify-changes, docker-build-nightly ]
|
|
|
|
|
if: ${{ success() && needs.verify-changes.outputs.build == 'true' }}
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
|
@ -166,9 +166,9 @@ jobs:
|
|
|
|
|
uses: Kometa-Team/discord-notifications@master
|
|
|
|
|
with:
|
|
|
|
|
webhook_id_token: ${{ secrets.NIGHTLY_WEBHOOK }}
|
|
|
|
|
title: Kometa ${{ needs.increment-version.outputs.version }} Build ${{ needs.increment-version.outputs.build-value }}
|
|
|
|
|
url: https://github.com/Kometa-Team/Kometa/commit/${{ needs.increment-version.outputs.commit-hash }}
|
|
|
|
|
description: ${{ needs.increment-version.outputs.commit-msg }}
|
|
|
|
|
title: Kometa ${{ needs.increment-build.outputs.version }} Build ${{ needs.increment-build.outputs.build-value }}
|
|
|
|
|
url: https://github.com/Kometa-Team/Kometa/commit/${{ needs.increment-build.outputs.commit-hash }}
|
|
|
|
|
description: ${{ needs.increment-build.outputs.commit-msg }}
|
|
|
|
|
message: "<@&967002147520675840> - An update to Kometa has now been published and is available to users of the **nightly** branch."
|
|
|
|
|
color: ${{ vars.COLOR_SUCCESS }}
|
|
|
|
|
username: ${{ vars.BOT_NAME }}
|