8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 22:43:03 +01:00
firebird-mirror/.github/actions/adjust-snapshot-buildno/action.yml
2024-03-12 21:55:35 -03:00

21 lines
640 B
YAML

name: Adjust snapshot build number
description: Adjust snapshot build number
runs:
using: composite
steps:
- id: adjust-snapshot-buildno
if:
github.repository == 'FirebirdSQL/firebird' &&
(github.ref_type == 'branch' &&
(github.ref_name == 'master' ||
(startsWith(github.ref_name, 'v') && endsWith(github.ref_name, '-release'))
)
) ||
false
shell: bash
run: |
sed -i'' -e "s/SuffixKind=\(.*\)/SuffixKind=\"$(echo ${{ github.sha }} | cut -c 1-7)\"/" src/misc/writeBuildNum.sh
mkdir gen
src/misc/writeBuildNum.sh rebuildHeader