ci: automate non-main branch/PR builds and Discord commit notifications

This commit is contained in:
Mythrax
2026-03-15 15:31:51 +10:00
parent 48cb306ae8
commit 38f7633df9
5 changed files with 101 additions and 6 deletions
+10 -1
View File
@@ -5,6 +5,12 @@ concurrency:
cancel-in-progress: true
on:
push:
branches-ignore:
- main
pull_request:
branches-ignore:
- main
schedule:
- cron: "0 12 * * *"
workflow_dispatch: {}
@@ -56,7 +62,10 @@ jobs:
- name: Compare versions
id: compare
run: |
if [ "${{ steps.upstream.outputs.hash_short }}" != "${{ steps.last_built.outputs.last_hash }}" ]; then
if [ "${{ github.event_name }}" = "push" ]; then
echo "should_build=true" >> $GITHUB_OUTPUT
echo "✅ Push event detected - will build"
elif [ "${{ steps.upstream.outputs.hash_short }}" != "${{ steps.last_built.outputs.last_hash }}" ]; then
echo "should_build=true" >> $GITHUB_OUTPUT
echo "✅ New version detected - will build"
elif [ "${{ steps.release_check.outputs.exists }}" != "true" ]; then