FIX: Changed workflow (parallel execution of version check and build). New test
This commit is contained in:
@@ -56,7 +56,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
update-version:
|
update-version:
|
||||||
needs: check-version
|
needs: [check-version]
|
||||||
if: needs.check-version.outputs.should_build == 'true' && needs.check-version.outputs.current_version != needs.check-version.outputs.latest_version
|
if: needs.check-version.outputs.should_build == 'true' && needs.check-version.outputs.current_version != needs.check-version.outputs.latest_version
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
@@ -88,11 +88,11 @@ jobs:
|
|||||||
git config --local user.email "action@gitea.com"
|
git config --local user.email "action@gitea.com"
|
||||||
git config --local user.name "Gitea Action"
|
git config --local user.name "Gitea Action"
|
||||||
git add zabbix-apk-builder/APKBUILD
|
git add zabbix-apk-builder/APKBUILD
|
||||||
git commit -m "Update Zabbix to version $LATEST_VERSION" || exit 0
|
git commit -m "CHANGE: Update Zabbix to version $LATEST_VERSION" || exit 0
|
||||||
git push
|
git push
|
||||||
|
|
||||||
build-packages:
|
build-packages:
|
||||||
needs: [check-version]
|
needs: [update-version]
|
||||||
if: needs.check-version.outputs.should_build == 'true'
|
if: needs.check-version.outputs.should_build == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ gitea.ref }}
|
ref: ${{ gitea.head_ref }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
@@ -131,7 +131,7 @@ jobs:
|
|||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
deploy-test:
|
deploy-test:
|
||||||
needs: [check-version, build-packages]
|
needs: [build-packages]
|
||||||
if: needs.check-version.outputs.should_build == 'true' && gitea.ref == 'refs/heads/test'
|
if: needs.check-version.outputs.should_build == 'true' && gitea.ref == 'refs/heads/test'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Contributor: Maksym Buz <maksym.buz@zabbix.com>
|
# Contributor: Maksym Buz <maksym.buz@zabbix.com>
|
||||||
# Maintainer: Maksym Buz <maksym.buz@zabbix.com>
|
# Maintainer: Maksym Buz <maksym.buz@zabbix.com>
|
||||||
pkgname=zabbix
|
pkgname=zabbix
|
||||||
pkgver=7.4.2
|
pkgver=7.4.1
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="Enterprise-class open source distributed monitoring solution"
|
pkgdesc="Enterprise-class open source distributed monitoring solution"
|
||||||
url="https://www.zabbix.com/"
|
url="https://www.zabbix.com/"
|
||||||
|
|||||||
Reference in New Issue
Block a user