mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-02-16 18:00:52 +01:00
Fixed tag generation for releases
This commit is contained in:
parent
221a078cbb
commit
2b95ec607c
17
.github/workflows/images_build.yml
vendored
17
.github/workflows/images_build.yml
vendored
@ -34,7 +34,7 @@ jobs:
|
|||||||
os: ${{ steps.os.outputs.list }}
|
os: ${{ steps.os.outputs.list }}
|
||||||
database: ${{ steps.database.outputs.list }}
|
database: ${{ steps.database.outputs.list }}
|
||||||
components: ${{ steps.components.outputs.list }}
|
components: ${{ steps.components.outputs.list }}
|
||||||
current_branch: ${{ steps.branch_info.outputs.current_branch }}
|
is_default_branch: ${{ steps.branch_info.outputs.is_default_branch }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
@ -79,7 +79,20 @@ jobs:
|
|||||||
|
|
||||||
- name: Get branch info
|
- name: Get branch info
|
||||||
id: branch_info
|
id: branch_info
|
||||||
uses: tj-actions/branch-names@v5
|
run: |
|
||||||
|
github_ref="{{ github.ref }}"
|
||||||
|
result=false
|
||||||
|
|
||||||
|
if [[ "$github_ref" == "refs/tags/"* ]]; then
|
||||||
|
github_ref=${github_ref%.*}
|
||||||
|
fi
|
||||||
|
|
||||||
|
github_ref=${github_ref##*/}
|
||||||
|
|
||||||
|
if [[ "$github_ref" == "{{ env.LATEST_BRANCH }}" ]]; then
|
||||||
|
result=true
|
||||||
|
fi
|
||||||
|
echo "::set-output name=is_default_branch::$result"
|
||||||
|
|
||||||
build_base:
|
build_base:
|
||||||
timeout-minutes: 70
|
timeout-minutes: 70
|
||||||
|
17
.github/workflows/images_build_windows.yml
vendored
17
.github/workflows/images_build_windows.yml
vendored
@ -34,7 +34,7 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
os: ${{ steps.os.outputs.list }}
|
os: ${{ steps.os.outputs.list }}
|
||||||
components: ${{ steps.components.outputs.list }}
|
components: ${{ steps.components.outputs.list }}
|
||||||
current_branch_branch: ${{ steps.branch_info.outputs.current_branch }}
|
is_default_branch: ${{ steps.branch_info.outputs.is_default_branch }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
@ -68,7 +68,20 @@ jobs:
|
|||||||
|
|
||||||
- name: Get branch info
|
- name: Get branch info
|
||||||
id: branch_info
|
id: branch_info
|
||||||
uses: tj-actions/branch-names@v5
|
run: |
|
||||||
|
github_ref="{{ github.ref }}"
|
||||||
|
result=false
|
||||||
|
|
||||||
|
if [[ "$github_ref" == "refs/tags/"* ]]; then
|
||||||
|
github_ref=${github_ref%.*}
|
||||||
|
fi
|
||||||
|
|
||||||
|
github_ref=${github_ref##*/}
|
||||||
|
|
||||||
|
if [[ "$github_ref" == "{{ env.LATEST_BRANCH }}" ]]; then
|
||||||
|
result=true
|
||||||
|
fi
|
||||||
|
echo "::set-output name=is_default_branch::$result"
|
||||||
|
|
||||||
build_base:
|
build_base:
|
||||||
timeout-minutes: 70
|
timeout-minutes: 70
|
||||||
|
Loading…
Reference in New Issue
Block a user