FIX: Changed syntax. IF: statement cannot be used in push. Also ! should be enclosed in {{}}
This commit is contained in:
@@ -5,7 +5,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ main, test ]
|
branches: [ main, test ]
|
||||||
paths: [ 'zabbix-apk-builder/**' ]
|
paths: [ 'zabbix-apk-builder/**' ]
|
||||||
if: "!contains(gitea.event.head_commit.message, '[ci skip]')"
|
|
||||||
|
|
||||||
# Scheduled check for new versions (daily at 6 AM UTC)
|
# Scheduled check for new versions (daily at 6 AM UTC)
|
||||||
schedule:
|
schedule:
|
||||||
@@ -14,6 +13,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
check-version:
|
check-version:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
# Skip the execution if the commit message contains [ci skip]
|
||||||
|
if: ${{ !contains(gitea.event.head_commit.message, '[ci skip]') }}
|
||||||
outputs:
|
outputs:
|
||||||
should_build: ${{ steps.version-check.outputs.should_build }}
|
should_build: ${{ steps.version-check.outputs.should_build }}
|
||||||
latest_version: ${{ steps.version-check.outputs.latest_version }}
|
latest_version: ${{ steps.version-check.outputs.latest_version }}
|
||||||
|
|||||||
Reference in New Issue
Block a user