mirror of
https://github.com/citron-neo/PR.git
synced 2026-07-05 15:22:02 -07:00
ci: automate non-main branch/PR builds and Discord commit notifications
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user